使用pip安装pymvpa2时出错 [英] Error installing pymvpa2 with pip

查看:396
本文介绍了使用pip安装pymvpa2时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Python 2.7中安装pymvpa2.使用点子.我已成功安装了其他必需的模块,但无法安装pymvpa2(我使用Python 2.7和Windows 10). 另外,我下载了swig,但是我仍然收到相同的错误消息:

I'm trying to install pymvpa2 in Python 2.7. using pip. I successfully installed other required modules, but I can't install pymvpa2 (I use Python 2.7 and Windows 10). Also, I downloaded swig, but I keep getting the same error message:

C:\WINDOWS\system32>cd "C:\Python27\Scripts"
C:\Python27\Scripts>pip install pymvpa2
Collecting pymvpa2
Using cached pymvpa2-2.6.1.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
running build_src
build_src
building extension "mvpa2.clfs.libsmlrc.smlrc" sources
building extension "mvpa2.clfs.libsvmc._svmc" sources
creating build
creating build\src.win32-2.7
creating build\src.win32-2.7\mvpa2
creating build\src.win32-2.7\mvpa2\clfs
creating build\src.win32-2.7\mvpa2\clfs\libsvmc
swig.exe++: mvpa2\clfs\libsvmc\svmc.i
swig.exe -python -I3rd\libsvm -c++ -I3rd\libsvm -o build\src.win32-2.7\mvpa2\clfs\libsvmc\svmc_wrap.cpp -outdir build\src.win32-2.7\mvpa2\clfs\libsvmc mvpa2\clfs\libsvmc\svmc.i
error: command 'swig.exe' failed: No such file or directory
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\MYCOM\appdata\local\temp\pip-build-uiyfnt\pymvpa2\

预先感谢您对我的帮助!

Thank you in advance for helping me out!!

推荐答案

pip抱怨找不到"swig.exe".您是否检查过可以从终端执行"swig.exe"?只需键入swig或swig.exe即可帮助您找到答案.成功安装命令行程序后,您只需在终端中键入其名称即可启动.

pip complains about not finding "swig.exe". Have you checked that you can execute "swig.exe" from the terminal? Simply typing swig or swig.exe should help you find this out. When a command-line program is installed successfully, you can simply type its name in a terminal and it should start.

如果此方法无法使用swig,请查看其特殊页面,以帮助您开始使用Windows:

If swig is not available by this methods, check their special page to get you started on windows: http://www.swig.org/Doc3.0/Windows.html

这篇关于使用pip安装pymvpa2时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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