发布时间:2019-07-06 10:42:44编辑:auto阅读(2280)
1, download Python2.7
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
2, 解压Python 2.7 并安装
tar -xzvf Python-2.7.9.tgz -C /opt/ cd /opt/Python-2.7.9 ./configure --prefix=/usr/local/python2.7 make;make install
3, 安装Python 2.7 安装库工具setuptools,pip
wget https://pypi.python.org/packages/source/s/setuptools/setuptools-14.3.1.tar.gz wgethttps://pypi.python.org/packages/source/p/pip/pip-6.0.8.tar.gz#md5=2332e6f97e75ded3bddde0ced01dbda3
4, 安装相关工具
tar -xzvf setuptools*.tar.gz cd setuptools* python2.7 setup.py build python2.7 setup.py install
mkdir /usr/local/python2.7/lib/python2.7/site-packages/ tar -xzvf pip-*.tgz cd pip-* python2.7 setup.py build python2.7 setup.py install
pip-2.7 freefz > requirest.txt pii install -r requirest.txt
上一篇: [PYTHON] 核心编程笔记之七-Py
下一篇: OSI第3层:网络层
48332
47143
38029
35302
29798
26481
25447
20422
20109
18553
142°
139°
137°
216°
182°
408°
251°
229°
262°
464°