Unable to find vcvarsall.bat using Python 3.3 in Windows 8

前端 未结 5 801
臣服心动
臣服心动 2020-12-07 21:17

I am having an issue when I try to run:

pip install numpy

I get:

unable to find vcvarsall.bat.

I followed

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-07 22:09

    You can stick with Visual Studio, but you have to "redirect" it to the one you have installed. In my case I have VS 2012, Python 3.3

    SET VS100COMNTOOLS=%VS110COMNTOOLS%

    This will make pip use the VS2012's vcvarsall.bat file. Older versions of python might require to alter VS90COMNTOOLS variable.

提交回复
热议问题