Install Python under Windows
A) Download Python software
Software:https://www.python.org/downloads/windows/, click the link to download
Install the download good software, all the way next installs the achievement OK, in which to record the Python installation path: C:\Python27, will use this directory when the environment variable is set later.
b) Configure environment variables for Python
WINDOWS10 operating system, enter "environment variables" in the search field to search
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/A7/43/wKioL1nkW1eiFtywAACi-ks4XVM350.png-wh_500x0-wm_ 3-wmp_4-s_3895996259.png "title=" 11.png "alt=" Wkiol1nkw1eiftywaaci-ks4xvm350.png-wh_50 "/>
Enter the system environment variable to add the Python installation path:
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/08/94/wKiom1nkXq-AqIgoAAECr0bg31M632.png "title=" 12. PNG "alt=" Wkiom1nkxq-aqigoaaecr0bg31m632.png "/>
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/08/94/wKiom1nkXtKQIQEeAAIN3ZZRawc952.png "title=" 13. PNG "alt=" Wkiom1nkxtkqiqeeaain3zzrawc952.png "/>650) this.width=650; src=" https://s1.51cto.com/wyfs02/M02/A7/ 43/wkiol1nkxfozo1bdaafsac5jijg396.png "title=" 14.png "alt=" Wkiol1nkxfozo1bdaafsac5jijg396.png "/>
Edit the system environment variable, add the path to the Python path and scripts you installed, and then confirm the save.
c) Enter CMD to test whether the environment variable of Python is set successfully, and if the setting is successful, enter Python, you can see the version number of Python
Test: Output Hello World code to see if the output is normal.
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/A7/44/wKioL1nkXNayWNJtAAA-F-it3I4893.png "title=" 15. PNG "alt=" Wkiol1nkxnaywnjtaaa-f-it3i4893.png "/>
Install Python under Linux
Linux system for the most current enterprise version should be CentOS, because he is open source free, redhat system is also part of the use, Ubuntu a lot of research and development in use, most of the Linux system comes with a Python parser, so do not need to install, You can execute the command python on the shell, you can see the interactive mode into Python, and display the Python version and other information, as shown in
Download Python:
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/A7/44/wKioL1nkXlfxN6esAAAccXYnUPo785.png "title=" 16. PNG "alt=" Wkiol1nkxlfxn6esaaaccxynupo785.png "/>
Open Python website to download the Python version you need https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz
Tar zxvf python-2.7.14.tgz
C D Python-2.7.14
. /configure
Make
Make install
Install Python under Mac system
How to install PYTHON,MAC system in Mac system actually comes with a Python execution environment to run Python, but development may not be enough, so we need to reinstall Python, here are two scenarios to install:
a) Homebrew
Brew Install Python
This program is relatively simple, if the error can be given to the front with sudo to try. This installation of Python may not be the latest version.
b) Download and install from official website
we can get from https://www.python.org/ftp/python/2.7.14/python-2.7.14-macosx10.6.pkg download installation requires Python version, installation is relatively simple, all the way to continue OK, the disadvantage is that later upgrade, uninstall have to maintain their own, the two methods installed Python location is not the same, we can use which python to see where the installation is, type Python in the terminal after installation to verify that the installation was successful.
This article is from the "brave Heart Zhao Xiao Bai" blog, please make sure to keep this source http://3024783.blog.51cto.com/3014783/1972846
Python installation and configuration under different operating systems