错误:命令'gcc'失败:没有这样的文件或目录

sih*_*hrc 14 python windows installation gcc mingw

我正试图跑一个

python setup.py build --compiler=mingw32
Run Code Online (Sandbox Code Playgroud)

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

error: command 'gcc' failed: No such file or directory
Run Code Online (Sandbox Code Playgroud)

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

>gcc
gcc: fatal error: no input files
compilation terminated
Run Code Online (Sandbox Code Playgroud)

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

OpenPIV

关于这个问题的上一篇文章

任何帮助/建议/解决方案将不胜感激.

小智 16

您需要先使用以下命令安装它

sudo apt-get install gcc
Run Code Online (Sandbox Code Playgroud)


sih*_*hrc 14

经过几个小时的搜索,我发现这是MinGW和Python之间的问题.他们彼此沟通不畅.

存在一个MinGW(非官方)的二进制包,用于与此处的 Python一起使用

它解决了这个问题!