错误:命令'gcc'失败:没有这样的文件或目录 [英] Error: command 'gcc' failed: No such file or directory

查看:3420
本文介绍了错误:命令'gcc'失败:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图运行一个

  python setup.py build --compiler = mingw32 

code>

但会导致主题中提到的错误:

<$ p $没有这样的文件或目录

error:command'gcc'failed:但我能够从命令提示符运行gcc(我已将它添加到我的PATH env var中):

 > gcc 
gcc:致命错误:无输入文件
编译终止

我正在运行在Windows 7 64位上。 Python27。我正在尝试构建的具体来源:



OpenPIV



上一篇文章

a>关于这个问题。



任何帮助/建议/解决方案将不胜感激。 解决方案经过数小时和数小时的搜索,我发现这是MinGW和Python之间的问题。它们不能很好地相互通信。



存在一个MinGW(非官方)二进制包,用于Python中的 here



它解决了这个问题!


I'm trying to run a

python setup.py build --compiler=mingw32

but it results in the error mentioned in the subject:

error: command 'gcc' failed: No such file or directory

but I am capable of running gcc from command prompt (i have added it to my PATH env var):

>gcc
gcc: fatal error: no input files
compilation terminated

I'm running on Windows 7 64-bit. Python27. Specific source I'm trying to build:

OpenPIV

Previous Post on this issue.

Any help/advice/solutions will be greatly appreciated.

解决方案

After hours and hours of searching, I've discovered that this is a problem between MinGW and Python. They don't communicate well with one another.

There exists a binary package of MinGW (unofficial) that was meant for use with Python located here

It fixes the problem!

这篇关于错误:命令'gcc'失败:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆