Skip to content
Advertisement

Spacy Installation error in python, with pip command

Thanks for looking into this, I was trying to install spacy with python 3.8 ( I tried it with 3.7.9 interpreter too ) But apparently It has been giving me following errors. Command used pip install spacy

ERROR: Command errored out with exit status 1: 'c:pythonpython38-32python.exe' 
'c:pythonpython38-32libsite-packagespip' install --ignore-installed --no-user --prefix 
'C:UsersjayspcAppDataLocalTemppip-build-env-1o6ows04overlay'
--no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 
setuptools 'cython>=0.25' 'cymem>=2.0.2,<2.1.0' 'preshed>=3.0.2,<3.1.0'
'murmurhash>=0.28.0,<1.1.0'
'thinc>=7.4.1,<7.5.0' 'numpy==1.15.0; python_version<='"'"'3.7'"'"'' 'numpy==1.17.3; 
python_version=='"'"'3.8'"'"'' 'numpy==1.19.3; python_version=='"'"'3.9'"'"'' 'numpy;
python_version>='"'"'3.10'"'"'' Check the logs for full command output.

can you please suggest me possible fixes ?

Advertisement

Answer

There may be a problem with your pip cache and/or your pip version:

Try this:

  1. Delete your pip cache as it may appear to be causing troubles.

On windows it is located on:

C:UsersYOUR_USERNAMEAppDataLocalpipcache

Just delete the folder.

  1. Then update pip to the latest version for the installation to work,

python -m pip install --upgrade pip

  1. After this process, try installing spaCy again:

python -m pip install spacy

or else, you could also try to Uninstall Python 32-bit and install Python-64 bit.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement