question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Model not installed.

See original GitHub issue

when I run the nlp = spacy.en.English() or spacy.load('en') in the windows with version 0.100.6

Traceback (most recent call last): File “C:\Program Files (x86)\JetBrains\PyCharm 5.0.1\helpers\pydev\pydevd.py”, line 2403, in <module> globals = debugger.run(setup[‘file’], None, None, is_module) File “C:\Program Files (x86)\JetBrains\PyCharm 5.0.1\helpers\pydev\pydevd.py”, line 1794, in run launch(file, globals, locals) # execute the script File “C:/Users/artemis_zrj/PycharmProjects/sentence_analyse/sub/data_processing/yelp/save_yelp_data.py”, line 4, in <module> nlp = spacy.en.English() File “C:\Users\artemis_zrj\Anaconda2\lib\site-packages\spacy\language.py”, line 225, in init package = util.get_package_by_name() File “C:\Users\artemis_zrj\Anaconda2\lib\site-packages\spacy\util.py”, line 30, in get_package_by_name “model.” % name) RuntimeError: Model None not installed. Please run ‘python -m spacy.en.download’ to install latest compatible model. Process finished with exit code 1

But the data is existed in the dir , site-packages\spacy\data__cache__ \en-1.0.9 ,I tried to download the data again,but it is not useful.

>>> import spacy
>>> from spacy.en import English
>>> import sputnik
>>> pkg = sputnik.package(spacy.about.__title__, spacy.about.__version__, 'en')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\artemis_zrj\Anaconda2\lib\site-packages\sputnik\__init__.py", line 160, in package
    return pool.get(package_string)
  File "C:\Users\artemis_zrj\Anaconda2\lib\site-packages\sputnik\package_list.py", line 57, in get
    raise PackageNotFoundException(package_string)
sputnik.package_list.PackageNotFoundException: en
>>> spacy
<module 'spacy' from 'C:\Users\artemis_zrj\Anaconda2\lib\site-packages\spacy\__init__.pyc'>
>>>

How can I load the model correctly?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

19reactions
pouyanacommented, Feb 5, 2018

@Shylajhaa I probably found the solution to this, from here:

python -m spacy download en

should work.

5reactions
Shylajhaacommented, Jan 26, 2018

Error while finding module specification for ‘spacy.en.download’ (ModuleNotFoundError: No module named ‘spacy.en’)

I’m getting this error while executing “python -m spacy.en.download”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django model error abstract or not installed? - Stack Overflow
It installed when I added.... class Meta: app_label = 'sms' ... It seems to be referring to the Originator model itself, which is...
Read more >
Grand 3 problem (... not installed!) - Steinberg Forums
Only when I open The Grand and try to chose a model I get the answer: “Model Yamaha C7 Close not installed!” (this...
Read more >
Desktop Connector Is Not Installed | Revit 2021
To access this file, you must install Desktop Connector. Issue: Revit cannot access the linked file because it is located on a connected...
Read more >
I failed to install tflite-model-maker #53550 - GitHub
I want to install tflite-model-maker , i use "pip3 install ... conda 4.10.1 requires ruamel_yaml_conda>=0.11.14, which is not installed.
Read more >
Installation - Hugging Face
Pretrained models are downloaded and locally cached at: ~/.cache/huggingface/hub . This is the default directory given by the shell environment variable ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found