Windows PYTHON2,3,PIP2,PIP3 Environment Setup

Source: Internet
Author: User

Python2

PYTHON-2.7.5.AMD64 directory C:\Python27 python renamed to Python2

Python3

PYTHON-3.6.4-AMD64 directory C:\python3 python renamed to Python3

pip0.8

CD c:\python27\pip-8.1.2,python2 setup.py Install

pip0.9

CD C:\python3\pip-9.0.1 python3 setup.py Install

Pycharm

Environment variables
C:\Python27\Scripts; C:\python3\Scripts; C:\Python27; C:\python3;

Module installation
Py-2-m pip install Cx_oracle
Py-3-m pip install Cx_oracle

Under Windows, TensorFlow only supports Python3, so install Python3 first.

    1. Download and install python3.5, note that the path does not contain spaces, so I installed in the C packing directory under the C:\Python35. Installation is possible by ticking the adding to path option so that the installer will automatically add C:\Python35 and C:\Python35\Scripts to the path variable. You can also add them manually after installation.
    2. Rename the Python.exe under C:\Python35\ to Python3.exe, pip.exe Delete under C:\Python35\Scripts (because Python27\scripts is already in my pip.exe).
    3. In the command line test, under any path, enter Python3, enter the Python3 command line, normal.
    4. Enter PIP3-V, prompting fatal error in the launcher:unable to create process using ' "'; Baidu search, some say PIP3 version issue, use python3-m pip install--upgra The de pip command is updated, but after I enter the requirement already UP-TO-DATE:PIP in C:\python35\lib\site-packages, the issue is not resolved. Continue Baidu, found to be mandatory installation, input command python3-m pip install--upgrade pip--force-reinstall, Show successfully installed pip-9.0.1, re-enter command PIP3- V, which shows Pip 9.0.1 from C:\python35\lib\site-packages (Python 3.5), resolves.

Windows PYTHON2,3,PIP2,PIP3 Environment Setup

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.