python - 安装 pymix 时出现错误 : command 'gcc' failed with exit status 1,

标签 python c++ gcc mixture-model

我正在努力安装 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 的二进制包(非官方),该包旨在与 python

Error: command 'gcc' failed: No such file or directory 这样的文件或目录

这没有任何区别。同样的错误。

最后,pymix 是唯一给我任何类型错误的模块。我已经成功下载了其他几个

提前感谢您的宝贵时间,这是我第一次真正参加 Python,对不起,如果我不清楚!!

最佳答案

您可以从 Christoph Gohlke 的 Windows Python 扩展包存储库下载 pymix 的预编译版本 here .您可能还需要安装 numpy

关于python - 安装 pymix 时出现错误 : command 'gcc' failed with exit status 1,,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21001035/

相关文章:

python - 如何在不下载的情况下从Azure Blob读取pickle文件?

c++ - 为什么 std::bitset<5>{}[0] 不是 constexpr?

c - 如何在 Linux 上为 gcc 制作一个简单的 makefile

python - Ubuntu Cython 编译错误 : command 'x86_64-linux-gnu-gcc' failed with exit status 1

python - 用零填充 3d numpy 图像数组

c++ - 在 Visual Studio 的 Python 中调用 C++ 项目 main()?

python - 当 Python 套接字连接失败时正确设置超时

c++ - 从文本文档中提取键+短语的规则

c++ - 如何使用 Helvetica 字体固定列宽?

c - C语言中资源获取即初始化