ubuntu pip is configured with locations that require TLS/SSL

发布时间 2023-07-07 15:01:37作者: 悟透

使用 pip 时 出现 pip is configured with locations that require TLS/SSL 是因为在编译时候没有加上开启 SSL 的参数,现在大部分的网络链接为了安全,都开启了 SSL 加密,常见的有 HTTPS 。

加上 --with-openssl=/usr 参数
--with-openssl需要指定的是 openssl 的源码目录,经过测试 ubuntu 下用 /usr 就可以。
image

如果指定别的路径,就会提示 no , 就不对了
image

所以,编译时候,把可能用到的参数都加上,省的后面用还要重新编译。


网上有的文章说用 --with-ssl 参数,经实际测试,py3版本,会提示"无效参数"

image



更详细看另一篇文章:https://www.cnblogs.com/wutou/p/17525439.html