我正在努力安装pymix(Python27,Windows 7 32位)。
我下载了该版本,但是,根据安装说明,我无法运行setup.py.
首先,我的安装导致“无法找到vcvarsall.bat”错误,根据该错误 几个人在线的方向,让我以mingw32作为安装人员。 我按照ming32的指示,添加了mingw32安装的路径, 然后在命令提示符中收到此错误。
c:\Program Files\Python27\Lib\site-packages\pymix>setup.py build
----------------------------------------------------------------------------
---
The following include paths are used for compilation of the C extension:
Python.h: C:\Program Files\Python27/include/python2.7
arrayobject.h: C:\Program Files\Python27/lib/python2.7/site-
packages/numpy/core/
include/numpy
In case the installation fails, check these paths first.
----------------------------------------------------------------------------
---
running build
running build_py
running build_ext
building '_C_mixextend' extension
C:\Program Files\mingw\bin\gcc.exe -mdll -O -Wall "-IC:\Program
Files\Python27/i
nclude/python2.7" "-IC:\Program Files\Python27/lib/python2.7/site-
packages/numpy
/core/include/numpy" "-IC:\Program Files\Python27\include" "-IC:\Program
Files\P
ython27\PC" -c C_mixextend.c -o build\temp.win32-2.7\Release\c_mixextend.o
gcc: C_mixextend.c: No such file or directory
gcc: no input files
error: command 'gcc' failed with exit status 1
另外,我还遵循了一些额外的说明 下载一个MinGW(非官方)的二进制包,用于 蟒
Error: command 'gcc' failed: No such file or directory 这样-文件或目录
这没有任何区别。同样的错误。
最后,pymix是唯一给我任何错误的模块。我已经成功下载了其他几个
提前感谢您的时间,并且看到它是我的第一个真正的时间 Python,对不起,如果我不清楚!!