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
Different environments can be created using the virtualenv tool. First, python2.7 and 3.6 versions must be installed in your system.
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 environmentIf 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