Multiple versions of Python under Pycharm coexistence (i)

Source: Internet
Author: User
After Idle,anaconda, and Pycharn programming environment, and after a period of project programming, decided to use Pycharm as a future work environment. On the one hand because the project team other people recommend, on the other hand in the use of the process more smoothly. Of course, a lot of people also recommend Anaconda, this is to see a person's preference.
As the research progresses, the complexity of the code gradually exposes some of the important problems of the original environment, 1: The Python version under multiple versions cannot coexist, even if the version is changed by changing the name of the executable file to cause the PIP to not work properly, 2: After the installation has been removed from Python, Some residual settings have an impact on the use of pacharm. To sum up, decide to rebuild the working environment.

To introduce, my research direction is the image processing and the machine vision direction, also relates to the machine learning related content, therefore installs the third party library to be related to the above library.

Begin

First, save the screenshot of the original installed library. Easy to reinstall when setting up the environment


Then uninstall the original Python version and clean up the environment variables, including PIP

First install python3.5 (machine learning framework has not been supported to 3.6), and add to the environment variables, can be downloaded at the official website. Because the Python3 is more, the default settings are not changed. This opens the python3.5 directly at the command prompt.



Next, install python2.7, rename the executable program to PYTHON27, and then manually add python27 and script to the environment variable



So you can invoke Python3 in Python to invoke python2.7 with Python27.


Install a Third-party package with Pip install to Python3 and install a third party package with python27-m pip install to Python27 (location is located in the script directory)


This solves the problem of multiple versions of coexistence and two version PIP installations

Next, in the second chapter, record the selection of different versions in Pycharm and install the Third-party libraries for different versions.

Complete.

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.