--no-cache-dir error when downloading model
See original GitHub issuegulshan@gulshan-Inspiron-3543:/usr/local/lib/python2.7/dist-packages$ python -m spacy download en
Downloading en_core_web_sm-1.2.0/en_core_web_sm-1.2.0.tar.gz
Usage:
/usr/bin/python -m pip install [options] <requirement specifier> ...
/usr/bin/python -m pip install [options] -r <requirements file> ...
/usr/bin/python -m pip install [options] [-e] <vcs project url> ...
/usr/bin/python -m pip install [options] [-e] <local project path> ...
/usr/bin/python -m pip install [options] <archive url/path> ...
no such option: --no-cache-dir
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, 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 "/usr/local/lib/python2.7/dist-packages/spacy/__main__.py", line 109, in <module>
plac.Interpreter.call(CLI)
File "plac_ext.py", line 1142, in call
print(out)
File "plac_ext.py", line 914, in __exit__
self.close(exctype, exc, tb)
File "plac_ext.py", line 952, in close
self._interpreter.throw(exctype, exc, tb)
File "plac_ext.py", line 964, in _make_interpreter
arglist = yield task
File "plac_ext.py", line 1139, in call
raise_(task.etype, task.exc, task.tb)
File "plac_ext.py", line 380, in _wrap
for value in genobj:
File "plac_ext.py", line 95, in gen_exc
raise_(etype, exc, tb)
File "plac_ext.py", line 966, in _make_interpreter
cmd, result = self.parser.consume(arglist)
File "plac_core.py", line 207, in consume
return cmd, self.func(*(args + varargs + extraopts), **kwargs)
File "/usr/local/lib/python2.7/dist-packages/spacy/__main__.py", line 31, in download
cli_download(model, direct)
File "spacy/cli/download.py", line 25, in download
link_package(model_name, model, force=True)
File "spacy/cli/link.py", line 21, in link_package
pkg = importlib.import_module(package_name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named en_core_web_sm
gulshan@gulshan-Inspiron-3543:/usr/local/lib/python2.7/dist-packages$
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Docker : error while performing "RUN pip install --no-cache ...
I am was getting an error while docker is in step 7 i.e,. Step 7/23 : RUN pip wheel --no-cache-dir --no-deps --wheel-dir /usr/src/app/wheels ......
Read more >Installation - Spark NLP - John Snow Labs
For example to install the Zulu Java 11 JDK head to Download Azul JDKs ... pip3 install --no-cache-dir pyspark spark-nlp==3.2.1 notebook==5.
Read more >FAQ - BERTopic
The great thing about using sentence-transformers is that it searches automatically for an embedding model locally. If it cannot find one, it will...
Read more >Deploy a pretrained PyTorch BERT model from HuggingFace ...
In this tutotial we will deploy on SageMaker a pretraine BERT Base model from ... !pip install --upgrade --no-cache-dir torch-neuron neuron-cc[tensorflow] ...
Read more >Installing Python Packages In Your Docker Container
... at https://spacy.io/usage --no-cache-dir allows one to save space in the final image RUN pip install --no-cache-dir -U spacy # Copies script.py file...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Which version of pip are you running?
The
download
command uses pip to install the models, and sets the--no-cache-dir
flag to avoid pip requiring too much memory. This setting seems to not be available in your version, so could you try updating pip to the latest version and re-run the download?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.