i'm running os x el capitan on python 3.5.2 via anaconda , have spacy 0.101.0.
i'm trying install spacy english language model using python -m spacy.en.download
. when that, error says urllib.error.urlerror: <urlopen error [ssl: certificate_verify_failed] certificate verify failed (_ssl.c:645)>
. complete traceback follows:
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 server_hostname=server_hostname) file "/users/bsherman/anaconda/lib/python3.5/ssl.py", line 377, in wrap_socket _context=self) file "/users/bsherman/anaconda/lib/python3.5/ssl.py", line 752, in __init__ self.do_handshake() file "/users/bsherman/anaconda/lib/python3.5/ssl.py", line 988, in do_handshake self._sslobj.do_handshake() file "/users/bsherman/anaconda/lib/python3.5/ssl.py", line 633, in do_handshake self._sslobj.do_handshake() ssl.sslerror: [ssl: certificate_verify_failed] certificate verify failed (_ssl.c:645) during handling of above exception, exception occurred: traceback (most recent call last): file "/users/bsherman/anaconda/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) file "/users/bsherman/anaconda/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) file "/users/bsherman/anaconda/lib/python3.5/site-packages/spacy/en/download.py", line 13, in <module> plac.call(main) file "/users/bsherman/anaconda/lib/python3.5/site-packages/plac_core.py", line 328, in call cmd, result = parser.consume(arglist) file "/users/bsherman/anaconda/lib/python3.5/site-packages/plac_core.py", line 207, in consume return cmd, self.func(*(args + varargs + extraopts), **kwargs) file "/users/bsherman/anaconda/lib/python3.5/site-packages/spacy/en/download.py", line 9, in main download('en', force) file "/users/bsherman/anaconda/lib/python3.5/site-packages/spacy/download.py", line 24, in download package = sputnik.install(about.__title__, about.__version__, about.__models__[lang]) file "/users/bsherman/anaconda/lib/python3.5/site-packages/sputnik/__init__.py", line 37, in install index.update() file "/users/bsherman/anaconda/lib/python3.5/site-packages/sputnik/index.py", line 84, in update index = json.load(session.open(request, 'utf8')) file "/users/bsherman/anaconda/lib/python3.5/site-packages/sputnik/session.py", line 43, in open r = self.opener.open(request) file "/users/bsherman/anaconda/lib/python3.5/urllib/request.py", line 466, in open response = self._open(req, data) file "/users/bsherman/anaconda/lib/python3.5/urllib/request.py", line 484, in _open '_open', req) file "/users/bsherman/anaconda/lib/python3.5/urllib/request.py", line 444, in _call_chain result = func(*args) file "/users/bsherman/anaconda/lib/python3.5/urllib/request.py", line 1297, in https_open context=self._context, check_hostname=self._check_hostname) file "/users/bsherman/anaconda/lib/python3.5/urllib/request.py", line 1256, in do_open raise urlerror(err) urllib.error.urlerror: <urlopen error [ssl: certificate_verify_failed] certificate verify failed (_ssl.c:645)>
run in terminal:
/applications/python 3.5.2/install certificates.command
or update certifi
package via pip
Comments
Post a Comment