继上篇Redhat下安装Python3留下的pip安装问题

在尝试在Red Hat系统上安装Python3时遇到确保pip安装失败的错误,提示pip 9.0.1需要SSL/TLS。解决方法是安装缺失的依赖,然后重新配置并编译Python 3.5。对于Ubuntu和CentOS,有具体的推荐依赖安装步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://blog.youkuaiyun.com/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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值