Closed mansaluke closed 6 years ago
@ines what info do you need? I have installed spacy in a virtual environment. When i try to run a command to download a model I receive the errors stated above.
Ah, sorry – I think somehow GitHub didn't post my comment. Here it is again:
Are you behind a proxy? And are you able to download the model directly from the release in your browser?
The .tar.gz
archive is the same file that's downloaded during spacy download
, and its an installable Python package. So if you have the file, you can also do the following:
pip install /path/to/en_core_web_sm-2.0.0.tar.gz
You should then be able to use the model like this:
import spacy
nlp = spacy.load('en_core_web_sm')
Im not sure why it wasnt working but installing from a local file on my computer seems to work (although not on the virtual machine). Thanks
Thanks for the update! On the local machine, you should be able to just copy the file over from your local machine etc. and then running pip install
on it.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hi, I've been having a problem installing language models after the installation of spacy. Ive installed spacy on a virtual environment (in a virtual machine - to avoid corporate security blocks). However when I run: "python -m spacy download en" I receive the following error:
(.env) C:\Users\DTUser\python.env>python -m spacy download en _Traceback (most recent call last): File "C:\Users\DTUser\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 183, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "C:\Users\DTUser\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 142, in _get_module_details return _get_module_details(pkg_main_name, error) File "C:\Users\DTUser\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 109, in _get_module_details import(pkg_name) File "C:\Users\DTUser\python.env\lib\site-packages\spacy__init__.py", line 4 , in
from .cli.info import info as cli_info
File "C:\Users\DTUser\python.env\lib\site-packages\spacy\cli__init.py", li
ne 1, in
from .download import download
File "C:\Users\DTUser\python.env\lib\site-packages\spacy\cli\download.py", li
ne 11, in
from .link import link
File "C:\Users\DTUser\python.env\lib\site-packages\spacy\cli\link.py", line 8
, in
from ..compat import symlink_to, path2str
File "C:\Users\DTUser\python.env\lib\site-packages\spacy\compat.py", line 9,
in
from thinc.neural.util import copy_array
File "C:\Users\DTUser\python.env\lib\site-packages\thinc\neural\ init__.py",
line 1, in
from ._classes.model import Model
File "C:\Users\DTUser\python.env\lib\site-packages\thinc\neural_classes\mode
l.py", line 12, in
from ..train import Trainer
File "C:\Users\DTUser\python.env\lib\site-packages\thinc\neural\train.py", li
ne 3, in
from .optimizers import Adam, SGD, linear_decay
File "optimizers.pyx", line 13, in init thinc.neural.optimizers
File "ops.pyx", line 1, in init thinc.neural.ops
ImportError: murmurhash.mrmr does not export expected C function hash128x86
And installing the model direcly from github doesnt help:
Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host= 'github-production-release-asset-2e65be.s3.amazonaws.com', port=443): Max retrie s exceeded with url: /84940268/69ded28e-c3ef-11e7-94dc-d5b03d9597d8?X-Amz-Algori thm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20181003%2Fus-east- 1%2Fs3%2Faws4_request&X-Amz-Date=20181003T152038Z&X-Amz-Expires=300&X-Amz-Signat ure=c681200f1e9ed510ea0f0e788f8a58e02f1698b027709076ad416e020825786e&X-Amz-Signe dHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3 Den_core_web_sm-2.0.0.tar.gz&response-content-type=application%2Foctet-stream (C aused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)' )))
I have tried updating pip or downloading different models with no avail. Im quite new to python so any help would be greatly appreciated!
How to reproduce the problem
create and activate virtual environment then run: "python -m spacy download en" and then "pip install https://github.com/explosion/spac y-models/releases/download/en_core_web_sm-2.0.0/en_core_web_sm-2.0.0.tar.gz Collecting https://github.com/explosion/spacy-models/releases/download/en_core_w eb_sm-2.0.0/en_core_web_sm-2.0.0.tar.gz)"
Your Environment
I also got an error when using the
python -m spacy info --markdown
command.