Python error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe' failed with exit status 2

16.7k views Asked by At

I have a problem installing an additional package to Python Anaconda using pip in the Anaconda Prompt:

pip install --upgrade pyregion

The error I get is:

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe' failed with exit status 2

Other packages such as aplpy and pyparsing have installed properly after some initial problems with PATH for the cl.exe file.

I'm using Python Anaconda3 (64-bit) on Windows 10 x64.

The only suggestions i've found have been specific to other packages/modules. Any help is greatly appreciated!

2

There are 2 answers

0
Elias Wahlstedt On BEST ANSWER

I solved this by simply reinstalling Visual C++ and Anaconda since I just got stuck with new errors. Works fine now!

0
Abraham On

After reinstalling python3.8 new version and removing the old it workes perfect for me try it.