Python Cannot install module spaCy

WinterMensch picture WinterMensch · May 23, 2018 · Viewed 21.2k times · Source

I´m new to python and I ran into a problem I can´t solve. I would like to install and use the package spacy in python. Therefore I opened cmd and ran

pip install spacy

While installing the dependecies I get an error message:

    ----------------------------------------

Command ""c:\users\xxx\appdata\local\programs\python\python37\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\xxx\AppData\Local\Temp\pip-install-6vcdnb_4\numpy\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\xxx\AppData\Local\Temp\pip-record-jhmti8_8\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\xxx\AppData\Local\Temp\pip-install-6vcdnb_4\numpy\

but I have no idea what´s the problem...

Does anybody has a solution for this?

I use Windows and python version 3.7.0b4

Answer

Milind Audichya picture Milind Audichya · Oct 8, 2019

I wasted my 2 hours almost for debugging this issue the simplest solution I came across all the efforts is you might using python 32-bit version which you need to uninstall and you will need to switch for python 64-bit version.

After switching everything worked fine just upgrade pip and setup tools before installing.

I hope it helps.