1. Installation in Linux system:
As long as the Linux operating system, the default is already installed in Python. It may not be the latest version, as long as the python2.7.x version is available.
If you do not want to install yourself, you can refer to the following actions:
-
to the official website to download the source code. For example:
wget https://www.python.org/ftp/python/2.7.10 /python-2.7.10.tgz
-
Unzip the source package
TAR-ZXVF python-2.7.10.tgz
-
compile
a, CD Python-2.7.10 ,
b,./configure--prefix=/usr/local #最好指定安装目录, if not developed, you can use the default.
c, Make&&make install
Once installed, enter the shell, enter Python, if you see it, >>> and display the Python version information, congratulations, this goes into Python's interactive mode.
2. Installation in Windows System:
Here to find the Windows Installer, download it, such as download the file: Python-2.7.10.msi. Then there is the constant "next step" to complete the installation.
In particular, after installation, it is necessary to check if there is python in the environment variable.
This is done, in cmd, enter Python, get the results similar to the above, it means that it has been installed.
This article is from the "Urapidil" blog, please make sure to keep this source http://wjgdu.blog.51cto.com/10878328/1716509
Installation of Python