2

I have installed spaCy using pip install spacy but when trying python -m spacy.en.download all, I get the following error ..

enter image description here

(For Google -- ssl.CertificateError: hostname 'index.spacy.io doesn't match 'api.explosion.ai'`)

Is there a way to fix this easily? Ref ..

Community
  • 1
  • 1
ashishsingal
  • 2,470
  • 2
  • 16
  • 25

5 Answers5

0

Try installing the new version in Linux. It will work.

0

Are you behind a proxy? I have to set ssl to false and then back again once installed. config conda --set ssl_verify false in anaconda prompt might work for you?

Siobhan
  • 153
  • 10
0

Disconnecting from VPN(Virtual Private Network) worked for me.

Manish
  • 113
  • 2
  • 8
0

I found this answer, I am on MacOS and was not behind a proxy. The below command installing from source got around the error.

pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz
Pelonomi Moiloa
  • 420
  • 4
  • 11
-1

This error is fixed in the latest spacy version and should not occur anymore. If you are experiencing the issue you should

  1. update your spacy version using pip install -U spacy
  2. and install the new models using python -m spacy download en

Be aware that the download command changed for installing models!

tmbo
  • 1,317
  • 10
  • 26
  • when the above commands are used there ssl error appears is there a way to do ssl_verify_false for the command like `python -m spacy download en`? I need to do: `python -m spacy download en_trf_bertbaseuncased_lg` – sAguinaga Nov 06 '19 at 15:23