I'm trying to install spaCy using pip install spacy
but I'm getting the following error ..
I have VS 2015 installed, and I have the following Python install ..
3.5.2 |Anaconda 2.5.0 (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)]
I tried the following SO solutions to no avail ..
- command cl.exe failed upon pip install django_compressor
- error: command 'cl.exe' failed: No such file or directory
As well as various others. This is not a unique problem to this specific library but more generally anytime I try to install Python libraries that need C to build on Windows.
Just added to the answer from Kunal Mathur and an answer to @mockash, since I cannot comment due to lack of reputation.
Before you type: pip install package_name, you need to change the directory to the folder where pip.exe is. for example:
But the weird thing is I can only successfully install via
'Visual C++ 2015 x64 x86' not 'x86 x64'
You may need to have
cl.exe
in yourPATH
.PATH
is an environment variable that tells Windows where to find executable files when you just give it the name. By default it contains locations such asC:\Windows
.First, install Visual C++ Build Tools from the Visual Studio installer if not installed already. Then do one of the following:
PATH
automatically.Add the folder
cl.exe
is in to thePATH
manually.The folder you're looking for is generally
(visual studio folder)\VC\bin
. Instructions can be found in this answer. After this you can usecl.exe
from any Command Prompt. Note that you have to restart the Command Prompt after this in order to update thePATH
in it.