Value error trying to install Python for Windows extensions

前端 未结 7 1191
清歌不尽
清歌不尽 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 05:45

    As stated it's trying to use a 32-bit compiler for 64-bit python. I was able to build successfully by:

    1. Finding vcvarsx86_amd64.bat in C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64 (depends on your setup)
    2. Open a cmd prompt
    3. Run SET VS90COMNTOOLS=%VS120COMNTOOLS% (depends on setup, see https://stackoverflow.com/a/10558328/2362877)
    4. Run vcvarsx86_amd64.bat
    5. Then pip install

提交回复
热议问题