使用pip安装pymvpa2时出错

时间:2017-05-21 02:07:59

标签: python-2.7 machine-learning pip deep-learning

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

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\

提前感谢您帮助我!!

1 个答案:

答案 0 :(得分:0)

pip抱怨找不到“swig.exe”。你有没有检查过你可以从终端执行“swig.exe”?只需输入swig或swig.exe即可帮助您找到答案。成功安装命令行程序后,只需在终端中键入其名称即可。

如果此方法无法使用swig,请查看其特殊页面以开始使用Windows:http://www.swig.org/Doc3.0/Windows.html