[英]Installing PYMC on Win64 - but MinGW does not seem to compile
I'm trying to install PYMC on a Win7-64 machine, using Python 2.7.3, installed as part of Python(x, y). 我正在尝试使用Python 2.7.3(作为Python(x,y)的一部分安装)在Win7-64机器上安装PYMC。
I've attempted to use python setup.py install
, but that didn't work. 我尝试使用
python setup.py install
,但这没有用。 I then went down the route of installing MinGW and MSYS as per these instructions http://pymc-devs.github.io/pymc/INSTALL.html , but I still have the error message below. 然后我按照这些说明http://pymc-devs.github.io/pymc/INSTALL.html的说明走了安装MinGW和MSYS的路线,但是下面仍然显示错误消息。 I have added the details to my path.
我已将详细信息添加到我的路径中。
I have also tried using the MCMC linked to via https://groups.google.com/forum/#!searchin/pymc/install $20windows/pymc/_10AZdgd620/wFPh4qium8QJ and the additional compiler details listed here https://groups.google.com/forum/#!topic/pymc/1-ENfS5NBQE and here http://ultrainfinitum.blogspot.co.uk/2012/12/python-error-unable-to-find-vcvarsallbat.html , which state to use the following compiler commands, setup.py install build --compiler=mingw32
or python setup.py build --force -c mingw32
, then python setup.py install --force --skip-build
. 我还尝试过使用通过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 ,该状态为使用以下编译器命令
setup.py install build --compiler=mingw32
或python setup.py build --force -c mingw32
,然后python setup.py install --force --skip-build
。
The error message I'm getting is as follows: 我收到的错误消息如下:
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
Any ideas on what to try next? 关于下一步尝试的任何想法?
Install Visual Studio Express . 安装Visual Studio Express 。 This will give you all the
vcvarsall.*
dependencies. 这将为您提供所有
vcvarsall.*
依赖项。
Make sure to select the C, C++ and other dev tools to ensure you get make.exe
. 确保选择C,C ++和其他开发工具,以确保获得
make.exe
。
After this, set your PATH
to include MinGW32's bin directory as well as msys\\1.0\\bin
之后,将您的
PATH
设置为包括MinGW32的bin目录以及msys\\1.0\\bin
Edit the distutils.cfg file located at C:\\Python26\\Lib\\distutils\\distutils.cfg
to set your compiler options. 编辑位于
C:\\Python26\\Lib\\distutils\\distutils.cfg
的distutils.cfg文件,以设置编译器选项。
[build]
compiler=mingw32
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.