Error which installation

while executing command like vinod@vinod:~/Weatherbot$ sudo python -m spacy download en. we got error as below

Traceback (most recent call last):
  File "/usr/lib/python2.7/", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/", line 72, in _run_code
    exec code in run_globals
  File "/home/vinod/.local/lib/python2.7/site-packages/spacy/", line 133, in <module>
  File "/home/vinod/.local/lib/python2.7/site-packages/", line 1142, in call
  File "/home/vinod/.local/lib/python2.7/site-packages/", line 914, in __exit__
    self.close(exctype, exc, tb)
  File "/home/vinod/.local/lib/python2.7/site-packages/", line 952, in close
    self._interpreter.throw(exctype, exc, tb)
  File "/home/vinod/.local/lib/python2.7/site-packages/", line 964, in _make_interpreter
    arglist = yield task
  File "/home/vinod/.local/lib/python2.7/site-packages/", line 1139, in call
    raise_(task.etype, task.exc, task.tb)
  File "/home/vinod/.local/lib/python2.7/site-packages/", line 380, in _wrap
    for value in genobj:
  File "/home/vinod/.local/lib/python2.7/site-packages/", line 95, in gen_exc
    raise_(etype, exc, tb)
  File "/home/vinod/.local/lib/python2.7/site-packages/", line 966, in _make_interpreter
    cmd, result = self.parser.consume(arglist)
  File "/home/vinod/.local/lib/python2.7/site-packages/", line 207, in consume
    return cmd, self.func(*(args + varargs + extraopts), **kwargs)
  File "/home/vinod/.local/lib/python2.7/site-packages/spacy/", line 33, in download
    cli_download(model, direct)
  File "/home/vinod/.local/lib/python2.7/site-packages/spacy/cli/", line 20, in download
    model_name = check_shortcut(model)
  File "/home/vinod/.local/lib/python2.7/site-packages/spacy/cli/", line 39, in check_shortcut
    shortcuts = get_json(about.__shortcuts__, "available shortcuts")
  File "/home/vinod/.local/lib/python2.7/site-packages/spacy/cli/", line 28, in get_json
    r = requests.get(url)
  File "/home/vinod/.local/lib/python2.7/site-packages/requests/", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/home/vinod/.local/lib/python2.7/site-packages/requests/", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/vinod/.local/lib/python2.7/site-packages/requests/", line 518, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/vinod/.local/lib/python2.7/site-packages/requests/", line 639, in send
    r = adapter.send(request, **kwargs)
  File "/home/vinod/.local/lib/python2.7/site-packages/requests/", line 488, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', error(104, 'Connection reset by peer'))

how to fix this problem.


Could you try upgrading the requests security package with

sudo python -m pip install "requests[security]"

I also recommend using python3, we don’t support any python2 versions any more