简体   繁体   English

错误:命令“ gcc”失败,退出状态为1,正在安装pymix

[英]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,如果不清楚,抱歉!

You can download a precompiled version of pymix from Christoph Gohlke's Python Extension Packages for Windows repository here . 你可以下载一个预编译的版本pymix从克里斯托夫Gohlke的Python扩展包的Windows库在这里 You may also need to install numpy as well. 您可能还需要安装numpy

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:命令'gcc'失败,退出状态1安装Fatiando(Python包) - error: command 'gcc' failed with exit status 1 installing Fatiando (Python Package) 错误:安装 eventlet 时命令“gcc”失败,退出状态为 1 - error: command 'gcc' failed with exit status 1 while installing eventlet 错误:安装pylibrabbitmq时命令'gcc'失败,退出状态为1 - error: command 'gcc' failed with exit status 1 while installing pylibrabbitmq 错误:安装crf ++时,命令'gcc'失败,退出状态为1 - Error: command 'gcc' failed with exit status 1 while installing crf++ 安装超集:错误:命令“gcc”失败,退出状态为 1 - Installing superset: error: command 'gcc' failed with exit status 1 错误:在RHEL上安装pycrypto时,命令'gcc'失败,退出状态为1 - error: command 'gcc' failed with exit status 1 while installing pycrypto on RHEL 命令'gcc'在安装scrapy时失败,退出状态1错误 - command 'gcc' failed with exit status 1 error while installing scrapy 安装Reportlab(错误:命令'gcc'失败,退出状态为1) - installing Reportlab (error: command 'gcc' failed with exit status 1 ) 错误:安装 psycopg2 时命令“gcc”失败并显示退出状态 - Error: command 'gcc' failed with exit status when installing psycopg2 错误命令gcc失败,退出状态为1 - error command gcc failed with exit status 1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM