Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)

后端 未结 2 1890
余生分开走
余生分开走 2021-01-01 06:21

I tried to install ephem module on my Windows 8.1 using

pip install ephem

but I get this error:

Microsoft Visual C++ 10.0 is

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-01 06:43

    I had the same problem and found the best solution here: http://www.devdungeon.com/content/fix-pip-install-unable-find-vcvarsallbat

    It says:

    Visual Studio 11, 12, and 14 are installed, but not 10. The error above specified it needed version 10. A newer version should work just as well, so let's just tell the environment to use the latest compiler instead of looking for version 10. In this case, 14 is the newest version. If you look at the pattern of the variable names, you can determine that the name for the version 10 should be VS100COMNTOOLS. You can set the version 10 variable to the value of version 14 with the following command: set VS100COMNTOOLS=%VS140COMNTOOLS%

    So, go to the command window and run the following command:

    set "VS100COMNTOOLS=%VS140COMNTOOLS%"
    

    I hope it helps other users.

提交回复
热议问题