Unable to install spacy via pip #7748
-
How to reproduce the behaviourWhen attempting to install spacy via pip (both CUDA and non-CUDA) on ubuntu 18.04, there are lots of compilation errors:
Your Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Hi, you probably just need to upgrade pip and related tools before installing spacy: pip install -U pip setuptools wheel After upgrading pip, it should install binary wheels on x86_64, so you probably won't need to compile anything. And even if you do, the newer pip will be able to compile the package correctly. We would also strongly recommend using a virtual env. You can see general install instructions here, click "virtual env" to add the additional instructions for that: |
Beta Was this translation helpful? Give feedback.
-
Upgrading pip seemed to work, although this does have the problem that it conflicts with the system-installed pip3 on ubuntu 18.04, leading to this issue. For me, I uninstalled the package |
Beta Was this translation helpful? Give feedback.
-
The same error has just happened to me when I installed spaCy on brandnew Cygwin. After installing pip3 install thinc
pip3 install spacy --no-build-isolation |
Beta Was this translation helpful? Give feedback.
-
lower your python version to python=3.6 |
Beta Was this translation helpful? Give feedback.
Hi, you probably just need to upgrade pip and related tools before installing spacy:
After upgrading pip, it should install binary wheels on x86_64, so you probably won't need to compile anything. And even if you do, the newer pip will be able to compile the package correctly.
We would also strongly recommend using a virtual env. You can see general install instructions here, click "virtual env" to add the additional instructions for that:
https://spacy.io/usage