Pawan Nirpal
Pawan Nirpal

Reputation: 622

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:\python\python38-32\python.exe' 
'c:\python\python38-32\lib\site-packages\pip' install --ignore-installed --no-user --prefix 
'C:\Users\jayspc\AppData\Local\Temp\pip-build-env-1o6ows04\overlay'
--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 ?

Upvotes: 0

Views: 2909

Answers (2)

user14719210
user14719210

Reputation:

Perhaps you're in the wrong location, try cd PIPLOCATIONHERE and then (in Windows) pip install spacy. I'm not that sure but I guess you can try.

Upvotes: 1

Sid110307
Sid110307

Reputation: 568

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:\Users\YOUR_USERNAME\AppData\Local\pip\cache

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.

Upvotes: 1

Related Questions