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/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/vinod/.local/lib/python2.7/site-packages/spacy/__main__.py", line 133, in <module>
    plac.Interpreter.call(CLI)
  File "/home/vinod/.local/lib/python2.7/site-packages/plac_ext.py", line 1142, in call
    print(out)
  File "/home/vinod/.local/lib/python2.7/site-packages/plac_ext.py", line 914, in __exit__
    self.close(exctype, exc, tb)
  File "/home/vinod/.local/lib/python2.7/site-packages/plac_ext.py", line 952, in close
    self._interpreter.throw(exctype, exc, tb)
  File "/home/vinod/.local/lib/python2.7/site-packages/plac_ext.py", line 964, in _make_interpreter
    arglist = yield task
  File "/home/vinod/.local/lib/python2.7/site-packages/plac_ext.py", line 1139, in call
    raise_(task.etype, task.exc, task.tb)
  File "/home/vinod/.local/lib/python2.7/site-packages/plac_ext.py", line 380, in _wrap
    for value in genobj:
  File "/home/vinod/.local/lib/python2.7/site-packages/plac_ext.py", line 95, in gen_exc
    raise_(etype, exc, tb)
  File "/home/vinod/.local/lib/python2.7/site-packages/plac_ext.py", line 966, in _make_interpreter
    cmd, result = self.parser.consume(arglist)
  File "/home/vinod/.local/lib/python2.7/site-packages/plac_core.py", line 207, in consume
    return cmd, self.func(*(args + varargs + extraopts), **kwargs)
  File "/home/vinod/.local/lib/python2.7/site-packages/spacy/__main__.py", line 33, in download
    cli_download(model, direct)
  File "/home/vinod/.local/lib/python2.7/site-packages/spacy/cli/download.py", line 20, in download
    model_name = check_shortcut(model)
  File "/home/vinod/.local/lib/python2.7/site-packages/spacy/cli/download.py", line 39, in check_shortcut
    shortcuts = get_json(about.__shortcuts__, "available shortcuts")
  File "/home/vinod/.local/lib/python2.7/site-packages/spacy/cli/download.py", line 28, in get_json
    r = requests.get(url)
  File "/home/vinod/.local/lib/python2.7/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/home/vinod/.local/lib/python2.7/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/vinod/.local/lib/python2.7/site-packages/requests/sessions.py", line 518, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/vinod/.local/lib/python2.7/site-packages/requests/sessions.py", line 639, in send
    r = adapter.send(request, **kwargs)
  File "/home/vinod/.local/lib/python2.7/site-packages/requests/adapters.py", 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.

Hi!

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