-
Windows installation Python
Download:
Https://www.python.org/ftp/python/2.7.11/python-2.7.11.amd64.msi
The installation process is the next step ...
Modify environment variables after installation
Right-click on the computer-"Properties-" Advanced system Configuration-"advanced-" Environment variables--"Click on Modify path, at the end of the semicolon plus the Python installation path, after installation in the CMD test.
-
Linux installation Python
Download
wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz
Linux comes with 2.6 update 2.7 required, Yum needs 2.6 support after update, to modify Yum file.
Compiling the installation
Tar zxvf python-2.7.11.tgz
- ./configure
- Make a && make install
Modify Original python2.6
mv/usr/bin/python/usr/bin/python2.6
Ln-s/usr/local/bin/python2.7/usr/bin/python
Vim/usr/bin/yum
Change the first line/usr/bin/python to/usr/bin/python2.6
Python Environment setup