search

Home  >  Q&A  >  body text

环境搭建 - anaconda 创建python2.7环境中打开编译器确是3.6版本

1.系统python版本为3.6,如何在anaconda多个环境中,如何在python2.7这个环境打开编译器去编程,
我已激活2.7版本,但是在里面输入jupyter,spider等等都是3.6?
想要打开后为2.7的

巴扎黑巴扎黑2876 days ago770

reply all(2)I'll reply

  • 黄舟

    黄舟2017-04-18 10:35:48

    Different environments can be created using the virtualenv tool. First, python2.7 and 3.6 versions must be installed in your system.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:35:48

    If you activate it via conda create -n py27 python=2.7 这类语句创建了anaconda 的 2.7环境的话,那么你只需要通过activate py27就能激活它了(windows平台),linux和mac平台通过source deactivate py27, then the command line uses that virtual environment

    If you have created different virtual environments, use it under the IDE like this:

    This is a virtual environment created under Pycharm. The setting method is: file->default settings->project interpreter. Then you can choose the virtual environment you installed. Other IDEs should also be able to set it up. Pycharm is very easy to use and is recommended

    reply
    0
  • Cancelreply