Friday 3 November 2017

Python Microsoft Visual C++ 14.0 is required error while pip install

Python Microsoft Visual C++ 14.0 is required error while pip install


Error
-------

Collecting dist
  Using cached dist-1.0.3.zip
Installing collected packages: dist
  Running setup.py install for dist: started
    Running setup.py install for dist: finished with status 'error'
    Complete output from command C:\Python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alps\\AppData\\Local\\Temp\\pycharm-packaging\\dist\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alps\AppData\Local\Temp\pip-62o9v2z5-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'dist' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
 
    ----------------------------------------

Command "C:\Python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\alps\\AppData\\Local\\Temp\\pycharm-packaging\\dist\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\alps\AppData\Local\Temp\pip-62o9v2z5-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\alps\AppData\Local\Temp\pycharm-packaging\dist\


pytho 3.x required "Microsoft Visual C++ 14.0"


before that install dotnet 4.5.1 which will be the minimum required version to be available on the machine before executing MS visutal c++ 14.0
https://www.microsoft.com/en-in/download/details.aspx?id=40779
so post installing python dont forget to install the package which can be downloaded from
http://landinghub.visualstudio.com/visual-cpp-build-tools

post installation restart the machine to take effect the changes

1 comment:

  1. i am still getting the same error after VS installation

    ReplyDelete