小编Ian*_*Lee的帖子

我可以使用“pip install --cert”吗?

试图弄清楚是否有一种方法可以避免在我在工作中安装软件包时使用 --cert 标志进行 pip。代理存在一些问题,尽管将mycert.crt文件添加到/usr/local/share/ca-certificates并运行sudo update-ca-certificates.

我看到的消息的一个例子是:

$ pip install "virtualenv>=1.10.1"
Downloading/unpacking virtualenv>=1.10.1
  Could not fetch URL https://pypi.python.org/simple/virtualenv/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed>
  Will skip URL https://pypi.python.org/simple/virtualenv/ when looking for download links for virtualenv>=1.10.1
  Could not fetch URL https://pypi.python.org/simple/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed>
  Will skip URL https://pypi.python.org/simple/ when looking for …
Run Code Online (Sandbox Code Playgroud)

linux certificate ssl linux-mint ubuntu

29
推荐指数
3
解决办法
6万
查看次数

标签 统计

certificate ×1

linux ×1

linux-mint ×1

ssl ×1

ubuntu ×1