The previous blog post describes installing Python2 and Python3 at the same time under Windows. While in the process of working, I used to use Pycharm as the IDE. This article will record how to select the Python version in Pycharm and install a Third-party library for the appropriate version.
The select version can be done when the project is created, or set in the settings--"open file/default Setting/project interpreter." The set icon on the right side of the interface is a stand-alone add local. Then select the Python2 or 3 executable (python.exe) directory.
After adding two versions:
Then you can select one and then install the third party library. Taking python3.5 as an example
You can search the search box for Third-party libraries that you want to install, and most libraries will be fine, but there are three special libraries that need to be installed with wheel in the course of my use.
OpenCV Numpy+mkl scipy, you need to download the corresponding version of the. whl file yourself, and then install it using the command line. Download Address: http://www.lfd.uci.edu/~gohlke/pythonlibs/
In the same way as in the Command Line window, enter the directory with the PIP install + file name
The rest can be installed directly with Pycharm.
Complete.
Using two blog posts to record Python's reliable environment, no longer worry, hahaha. Start work.