When it comes to learning Python programming learning, the first thing to master is how to install the environment, which is the most serious of learning whether Python or other programming languages. Today let's list out the specific steps for installing the Python environment for everyone to learn.
Windows:
1. Download the installation package
https://www.python.org/downloads/
2. Installation
Installation path: D:\python36
3. Configure Environment variables
"Right-click Computer"-"Properties"-"Advanced system Settings"-"Advanced"-"Environment variable"-"in the second content box to find the variable named path of a row, double-click"-"Python installation directory appended to the variable value, with;
such as: the original value; C:\python27, remember that there's a semicolon in front
Python update
Windows:
1. Unloading load can be
Linux:
View the default Python version
Python-v
1, install GCC, for compiling python source code
yuminstallgcc
2, download the source package, https://www.python.org/ftp/python/
3. Unzip and enter the source file
4. Compile and install
./configure
Makeall
Makeinstall
5. View version
/usr/local/bin/python2.7-v
6. Modify the default Python version
mv/usr/bin/python/usr/bin/python2.6
Ln-s/usr/local/bin/python2.7/usr/bin/python
7. To prevent Yum from performing exceptions, modify the Python version used by Yum
Vi/usr/bin/yum
Change the head #!/usr/bin/python to #!/usr/bin/python2.6
The above is the installation of the Python environment of the specific operation method, there are errors in the place also look at the amendment!
Teach you how to install the Python environment