且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

安装Python时出现pip错误:“忽略surepip错误:pip 8.1.1需要SSL/TLS"

更新时间:2021-10-10 00:13:34

您极有可能不使用SSL/TLS支持来编译Python-这很可能是因为您的系统上未安装SSL开发依赖项.

You are most likely not compiling Python with SSL/TLS support - this is likely because you don't have the SSL development dependencies installed on your system.

安装以下依赖项,然后重新配置并重新编译Python 3.5.

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