python error when compile file in windows
2010-07-29 23:19
585 查看
It is a common problems when compile some source file in python. The error message is as followed:
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installled,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
There is some solution for this, for example, make a static .lib file for yourself. But if cygwin is installed, you can create a cfg in "C:\Python25\Lib\distutils" named as distutils.cfg, and input the following content:
[build]
compiler=mingw32
this will change the default compiler from visual studio to gcc and finish the install process.
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installled,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
There is some solution for this, for example, make a static .lib file for yourself. But if cygwin is installed, you can create a cfg in "C:\Python25\Lib\distutils" named as distutils.cfg, and input the following content:
[build]
compiler=mingw32
this will change the default compiler from visual studio to gcc and finish the install process.
相关文章推荐
- windows下python如何安装模块或包? How to install package or module in windows OS when using PYTHON?
- Python使用eval强制转换字符串为字典时报错:File "<string>", line 1, in <module> NameError: name 'nan' is not defined
- Why is the "DEBUG: Error 2836" message generated in the DB2 V8, V9.1, or V9.5 installation log file on Windows system?
- How to compile and run a simple java file in jenkins on Windows
- 【Python错误】windows下使用pip/easy_install提示Fatal error in launcher: Unable to create process using...
- Disable ugly popup window when program occurs ciritical error in windows
- You receive a C4226 or a C4236 error message when you compile code to contain the keyword in 32-bit Visual C++(ZZ)
- python csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)
- 【Python错误】windows下使用pip/easy_install提示Fatal error in launcher: Unable to create process using...
- SSL_connect Error when installing Jekyll in Windows
- Error message when you try to modify or to delete an alternate access mapping in Windows SharePoint Services 3.0: "An update conflict has occurred, and you must re-try this action"
- windows下安装python的C扩展编译环境(解决“error: command 'cl.exe' failed: No such file or directory”)
- python读取csv文件是报错_csv.Error: iterator should return strings, not bytes (did you open the file in text
- some usual error when configre glut, glui in windows(http://accad.osu.edu/~ywei/Help/HowTos.html)
- When you start the Distributed Transaction Coordinator service in Windows XP/Server 2003,you receive error -1-73737712(转载)
- FIX: Error message when you try to install a large Windows Installer package or a large Windows Installer patch package in Windows Server 2003 or in Windows XP: "Error 1718. File was rejected by digital signature policy"
- python 3.5: TypeError: a bytes-like object is required, not 'str' when writing to a file
- You receive a "Setup Library wbemupgd.dll could not be loaded" error message when you use Add or Remove Programs in Windows Server 2003
- How can I force Python's file.write() to use the same newline format in Windows as in Linux (“\r\n”
- python error python version 2.7 required,which was not found in the registry