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.
- 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.
- 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).
- In the command line test, under any path, enter Python3, enter the Python3 command line, normal.
- 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