【问题标题】:Installing PYMC on Win64 - but MinGW does not seem to compile在 Win64 上安装 PYMC - 但 MinGW 似乎无法编译
【发布时间】:2013-11-07 20:29:30
【问题描述】:

我正在尝试在 Win7-64 机器上安装 PYMC,使用 Python 2.7.3,作为 Python(x, y) 的一部分安装。

我尝试使用python setup.py install,但没有成功。然后我按照这些说明http://pymc-devs.github.io/pymc/INSTALL.html 安装了 MinGW 和 MSYS,但我仍然有下面的错误消息。我已将详细信息添加到我的路径中。

我还尝试使用通过https://groups.google.com/forum/#!searchin/pymc/install$20windows/pymc/_10AZdgd620/wFPh4qium8QJ 链接到的 MCMC 以及此处列出的其他编译器详细信息 https://groups.google.com/forum/#!topic/pymc/1-ENfS5NBQE 和此处 http://ultrainfinitum.blogspot.co.uk/2012/12/python-error-unable-to-find-vcvarsallbat.html,其中声明使用以下编译器命令,@ 987654326@ 或 python setup.py build --force -c mingw32,然后是 python setup.py install --force --skip-build

我得到的错误信息如下:

error: Setup script exited with error: Unable to find vcvarsall.bat
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "c:\Python27\lib\atexit.py", line 24, in _run_exitfuncs
   func(*targs, **kargs)
  File "c:\Python27\lib\multiprocessing\util.py", line 284, in _exit_function
    info('process shutting down')
TypeError: 'NoneType' object is not callable
Error in sys.exitfunc:
Traceback (most recent call last):
  File "c:\Python27\lib\atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "c:\Python27\lib\multiprocessing\util.py", line 284, in _exit_function
    info('process shutting down')
TypeError: 'NoneType' object is not callable

对接下来要尝试什么有什么想法吗?

【问题讨论】:

    标签: python windows pymc


    【解决方案1】:

    快速解决方案(使用 Visual Studio Express)

    安装Visual Studio Express。这将为您提供所有 vcvarsall.* 依赖项。

    使用 MinGW

    确保选择 C、C++ 和其他开发工具,以确保获得make.exe

    在此之后,设置您的 PATH 以包含 MinGW32 的 bin 目录以及 msys\1.0\bin

    编辑位于C:\Python26\Lib\distutils\distutils.cfg 的 distutils.cfg 文件以设置您的编译器选项。

    [build]
    compiler=mingw32
    

    【讨论】:

    • 所以现在在编译步骤中出现了不同的错误消息,沿着 MiniGW 路线走:
    • 我尝试了上述方法,但没有任何乐趣 -- 我已将进度 here 用于就如何继续进行更广泛的意见,因为您建议的两个步骤都失败了。
    • 那真是太糟糕了。在命令行运行gcc --version 会发生什么?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多