Remember the last time I wrote Python learning notes is three months ago, during the period seen, also put down, this time to adhere to, bang, eat python.
This article is mainly based on the "Concise Python Tutorial" and some of their own understanding to write, there are problems, please point out.
First, install under Linux
If you are using a Linux operating system, then congratulations, you can basically not install Python, because most Linux operating systems installed the system by default when the Python.
To test whether your system has Python installed, you can execute the following command
Python-v
Displays the following Python version information, which means you have Python installed.
If you enter Python-v, the return value is: Bash:python:command not found that means you are not installed.
There are a number of ways to install:
You can use Yum to install, perform yum-y install python*
You can also use the RPM package to install, perform python-x.x.x-x.rpm Of course this requires you to install a lot of dependency packs.
You can also use the Source pack installation
wget http://python.org/ftp/python/2.6.6/Python-2.6.6.tar.bz2
Tar jxvf python-2.6.6.tar.bz2
CD Python-2.6.6
./configure--PREFIX=/USR # # #指定安装位置
Make
Make install
# # #linux下安装就完成了. ###
Second, install under Windows
Windows users also need to download Python first, depending on the operating system, the choice of download version is different.