相关疑难解决方法(0)

pip install失败,出现"连接错误:[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c:598)"

我是Python的新手,并试图> pip install linkchecker在Windows 7上.一些说明:

  • 无论封装,pip安装都失败了.例如,> pip install scrapy也会导致SSL错误.
  • Python 3.4.1的Vanilla安装包括pip 1.5.6.我尝试做的第一件事是安装linkchecker.Python 2.7已经安装,它随ArcGIS一起提供.pythonpip直到我安装3.4.1中不具备的命令行.
  • > pip search linkchecker作品.也许这是因为pip搜索不会验证网站的SSL证书.
  • 我在公司网络中,但我们没有通过代理来访问互联网.
  • 每台公司计算机(包括我的计算机)都有一个受信任的根证书颁发机构,其使用原因有多种,包括支持监控TLS流量到https://google.com.不确定这是否与它有关.

以下是运行后我的pip.log的内容pip install linkchecker:

Downloading/unpacking linkchecker
  Getting page https://pypi.python.org/simple/linkchecker/
  Could not fetch URL https://pypi.python.org/simple/linkchecker/: connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)
  Will skip URL https://pypi.python.org/simple/linkchecker/ when looking for download links for linkchecker
  Getting page https://pypi.python.org/simple/
  Could not fetch URL https://pypi.python.org/simple/: connection error: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries …
Run Code Online (Sandbox Code Playgroud)

python windows ssl pip

354
推荐指数
28
解决办法
67万
查看次数

当我尝试安装spaCy英语语言模型时,我得到CERTIFICATE_VERIFY_FAILED

我通过Anaconda在Python 3.5.2上运行OS X El Capitan并且拥有spaCy 0.101.0.

我正在尝试使用安装spaCy英语语言模型python -m spacy.en.download.但是,当我这样做时,我得到一个错误urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)>.完整的Traceback如下:

Traceback (most recent call last):
  File "/Users/bsherman/anaconda/lib/python3.5/urllib/request.py", line 1254, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/Users/bsherman/anaconda/lib/python3.5/http/client.py", line 1106, in request
    self._send_request(method, url, body, headers)
  File "/Users/bsherman/anaconda/lib/python3.5/http/client.py", line 1151, in _send_request
    self.endheaders(body)
  File "/Users/bsherman/anaconda/lib/python3.5/http/client.py", line 1102, in endheaders
    self._send_output(message_body)
  File "/Users/bsherman/anaconda/lib/python3.5/http/client.py", line 934, in _send_output
    self.send(msg)
  File "/Users/bsherman/anaconda/lib/python3.5/http/client.py", line 877, in send
    self.connect()
  File "/Users/bsherman/anaconda/lib/python3.5/http/client.py", line 1260, in connect …
Run Code Online (Sandbox Code Playgroud)

python spacy

9
推荐指数
1
解决办法
6890
查看次数

安装 Spacy 时 SSL 证书错误

我在安装 Spacy 时遇到以下错误。

requests.exceptions.SSLError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /explosion/spacy-models/master/compatibility.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))
Run Code Online (Sandbox Code Playgroud)

我正在运行的命令: python -m spacy download en_core_web_md

spacy rasa rasa-x

4
推荐指数
1
解决办法
4049
查看次数

标签 统计

python ×2

spacy ×2

pip ×1

rasa ×1

rasa-x ×1

ssl ×1

windows ×1