Search code examples
pythonpipanacondaastropy

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


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!


Solution

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