Value error trying to install Python for Windows extensions

前端 未结 7 1194
清歌不尽
清歌不尽 2020-11-27 05:42

I have Microsoft Visual Studio 2008 installed already. I downloaded the zip file Python for Windows extensions and extracted the contents into my Python27 folder. There\'s n

7条回答
  •  没有蜡笔的小新
    2020-11-27 06:02

    None of these answers worked for me but I found the solution on the issue tracker:

    1. Open cmd.
    2. cd "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin"
    3. Type vcvars32.bat or vcvars64.bat
    4. In the same prompt and -without closing: cd back to the Python module you're trying to install.
    5. The code should now install.

    Source: http://bugs.python.org/issue7511

提交回复
热议问题