1. 程式人生 > >繼上篇Redhat下安裝Python3留下的pip安裝問題

繼上篇Redhat下安裝Python3留下的pip安裝問題

http://blog.csdn.net/object_allen/article/details/66970625

上述第四步報出錯誤

Ignoring ensurepip failure: pip 9.0.1 requires SSL/TLS

解決辦法:

  詳細連結 http://stackoverflow.com/questions/37723236/pip-error-while-installing-python-ignoring-ensurepip-failure-pip-8-1-1-requir/37723517

Install the following dependency, and then re-configure and re-compile Python 3.5.

Ubuntu

apt-get install libssl-dev

In addition it is recommended to install the following.

apt-get install make build-essential libssl-dev zlib1g-dev libbz2-dev libsqlite3-dev

CentOS

yum install openssl-devel

In addition it is recommended to install the following.

yum install zlib-devel bzip2-devel sqlite sqlite
-devel openssl-devel
或者參考http://www.cnblogs.com/lilidun/p/6041198.html 省去setup的安裝,直接yum install openssl-devel 繼續重新編譯安裝python3.5
最後使用python3 -m pip install tensorflow測試pip是否成功
Requirement already satisfied: setuptools in /usr/local/lib/python3.5/site-packages (from protobuf>=3.1.0->tensorflow)
Installing collected packages: six, protobuf, wheel, numpy, tensorflow
Successfully installed numpy-1.12.1 protobuf-3.2.0 six-1.10.0 tensorflow-1.0.1 wheel-0.29.0