Home | 简体中文 | 繁体中文 | 杂文 | 知乎专栏 | 51CTO学院 | CSDN程序员研修院 | Github | OSChina 博客 | 腾讯云社区 | 阿里云栖社区 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏多维度架构

1.2. install

1.2.1. Python2.x

1.2.1.1. 编译安装

Python2.x

wget http://www.python.org/ftp/python/2.x.x/Python-2.x.x.tgz
tar zxvf Python-2.x.x.tgz
cd Python-2.x.x
./configure --prefix=/usr/local/python2.x
make
make install

ln -s /usr/local/python/bin/python2.5 /usr/bin/
ln -s /usr/local/python/bin/* /usr/local/bin/
			

1.2.1.2. Ubuntu 安装

sudo apt-get install python
sudo apt-get install python-setuptools
			

1.2.2. Python3.x

1.2.2.1. 编译安装

			
./configure --prefix=/usr/local/python-3.1.2
make && make install
			
			

1.2.2.2. Ubunut 13.04 环境安装python3

$ sudo apt-get install python3
			

python 3.3

$ sudo apt-get install python3.3
			

1.2.3. pypy - fast alternative implementation of Python - PyPy interpreter

http://pypy.org/

1.2.3.1. Ubuntu 环境安装

		
$ apt-cache search pypy | grep pypy
pypy - fast alternative implementation of Python - PyPy interpreter
pypy-dev - header files for PyPy (an alternative Python interpreter)
pypy-doc - developer Documentation for PyPy (an alternative Python interpreter)
pypy-lib - standard library for PyPy (an alternative Python interpreter)
python-pypy.translator.sandbox - sandboxed PyPy interpreter
		
			
		
$ sudo apt-get install pypy
		
			

1.2.3.2. CentOS 环境安装

		
# yum install pypy
		
			

1.2.4. Eric Python IDE

apt-get install eric
		

1.2.5. python to exe

1.2.5.1. pyinstaller

http://www.pyinstaller.org/

1.2.5.1.1. Linux

安装

pip install pyinstaller
			

制作EXE文件

$ pyinstaller test.py
			

dist目录下会生成可执行文件

1.2.5.2. py2exe

http://www.py2exe.org/

此软件 2008-11-16 后不再更新