Trying to build the basic python extension example fails (windows)

為{幸葍}努か 提交于 2019-12-06 12:58:14

For Win7 x64 machine Python 2.6 (x64) machine, you need to install
Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1
See the instructions at
http://wiki.cython.org/64BitCythonExtensionsOnWindows

The commercial Visual Studio 2008 is for Python 2.6, 2.7 and 2.8 on the 32-bit x86 setup.

geoff22873

I would avoid installing the Windows SDK and VS 2008 for this.

I believe the problem you have is due to VS 2008 not having the 64-bit compilers. To check this, find your directory containing vcvarsall.bat (search in the VS 2008 directory for it C:\Program Files (x86)\Microsoft Visual Studio 9.0). Once you've found vcvarsall.bat, open a cmd prompt in the directory it's in and type .\vcvarsall.bat amd64 If it is not the problem, you will see Setting environment for using Microsoft Visual Studio 2008 x64 tools. If this is the problem, you will get back a message saying something about configuration. This is easy to fix.

The express version of VS does not have the 64-bit compilers. The solution is to also install the SDK but is messy and unreliable so MS have provided all the compilers together in a single download: http://www.microsoft.com/en-gb/download/details.aspx?id=44266

Once you have downloaded the compilers, you can follow my post here if it doesn't work straight out the box: pyusb 2.7 windows install error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!