标签:www. dev lib 配置 错误总结 ref RoCE 是你 set
一、安装Python3.x的版本二、安装pip
1、下载pip
https://pypi.org/project/pip/
2、放在指定的目录下解压
![](http://i2.51cto.com/images/blog/201806/22/3fe91f27f1769bf10cea1918d5fde2b2.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
3、进入目录安装
cd pip-10.0.1
python setup.py install
4、安装完成:
![](http://i2.51cto.com/images/blog/201806/22/5b837dff30ab01fb06be8be73fdf97ae.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
----------------------------------------------------------------------------完美分割线-----------------------------------------------------------------------------------
安装过程中发生的错误总结:
1)会报模块没有安装:
RuntimeError: Compression requires the (missing) zlib module
![](http://i2.51cto.com/images/blog/201806/22/1caebac845c65666d35379e89ce736db.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
setuptools和zlib模块没有安装好
解决:
1.yum install zlib
2.yum install zlib-devel
3.安装完成后,进入python的安装目录下,重新执行make后执行make install
4.然后进去setuptools的目录中执行python setup.py install安装模块
5.安装完setuptools后进入pip的安装目录去进行pip的安装,python setup.py install
6.完成pip的安装
标签:www. dev lib 配置 错误总结 ref RoCE 是你 set
原文地址:http://blog.51cto.com/13484799/2131801