[英]error: command 'gcc' failed with exit status 1, installing pymix
I am in a terrible struggle to install pymix (Python27, Windows 7 32 bit). 我在安装pymix(Python27,Windows 7 32位)时费尽心思。
I downloaded the version, however, I am unable to run setup.py as per the install directions. 我下载了版本,但是无法按照安装说明运行setup.py。
First, my install resulted in a "unable to find vcvarsall.bat" error, which, per the directions of several people online, let me towards mingw32 as an installer. 首先,我的安装导致出现“无法找到vcvarsall.bat”错误,根据几个在线用户的指示,该错误使我转向mingw32作为安装程序。 I followed the directions for ming32, added a path for a mingw32 install, and then received this error in the command prompt. 我按照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
Also, I followed some additional instructions to download a binary package of MinGW (unofficial) that was meant for use with Python 此外,我还按照一些其他说明下载了用于Python的MinGW二进制软件包(非官方)。
Error: command 'gcc' failed: No such file or directory such-file-or-directory 错误:命令“ gcc”失败:没有这样的文件或目录 such-file-or-directory
This didn't make any difference. 这没有任何区别。 Same error. 同样的错误。
Lastly, pymix is the only module giving me any sort of errors. 最后,pymix是唯一给我任何类型错误的模块。 I have downloaded several others successfully 我已经成功下载了其他几个
Thanks in advance for your time, and, seeing as its my first real go at Python, sorry if I wasn't clear!! 在此先感谢您的宝贵时间,并且,这是我第一次真正接触Python,如果不清楚,抱歉!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.