Multiple versions of Python under Pycharm coexistence (ii)

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.