[Django]-Exception while installing packages in Python

1👍

Probably you are missing the c++ compiler.

I installed it using a pre-packaged version from here

👤Mikael

0👍

My problem was inside a virtualenv. I could not install some packages and got the same fatal error c1083. I was trying Visual Studio and PTVS. Just installing Microsoft Visual C++ Compiler for Python 2.7 https://www.microsoft.com/en-us/download/details.aspx?id=44266 was not enough to fix the error, despite it is needed.

I have found the solution here http://blog.ionelmc.ro/2014/12/21/compiling-python-extensions-on-windows/

The setuptools installed by virtualenv is too old (3.6). You need to remove it and reinstalling but, in the “Install python package” window in Visual Studio solution explorer, instead of using “setuptools” as the module name to install use “setuptools>=6.0”.

0👍

Got the same error message and found the cause was that while I had set up the PATH variable correctly with the paths to Visual Studio and Python, I forgot to add the C:\Windows\System32 path.

👤Cito

Leave a comment