无法将pylearn2安装到WinPython-64bit-3.4.4.1 [英] Cannot install pylearn2 to WinPython-64bit-3.4.4.1

查看:151
本文介绍了无法将pylearn2安装到WinPython-64bit-3.4.4.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装pylearn2软件包( http://deeplearning.net/software/pylearn2 / )。我在Windows 7(x64)中使用WinPython-64bit-3.4.4.1进行此操作。首先,有一个错误说:需要Microsoft Visual C ++ 10.0(无法找到vcvarsall.bat)。然后,我安装VS2012并配置环境变量。在执行 python setup.py development之后,有一个新错误被引用如下:

I am trying to install the pylearn2 package (http://deeplearning.net/software/pylearn2/). I do it in the Windows 7(x64) with the WinPython-64bit-3.4.4.1. First there is an error said that :"Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)". Then I install the VS2012 and configure the environment variables. After I execute "python setup.py develop", there is a new error which is cited as followed:

E:\WinPython-64bit-3.4.4.1\download\pylearn2>python setup.py develop
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to exe
cute optimized C-implementations (for both CPU and GPU) and will default to Pyth
on implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.E:\WinPython-64bit3.4.4.1\python-3.4.4.amd64\lib\site-packages\setuptools\dist.
py:285: UserWarning: Normalizing '0.1dev' to '0.1.dev0'normalized_version,
running develop
running egg_info
creating pylearn2.egg-info
writing top-level names to pylearn2.egg-info\top_level.txt
writing requirements to pylearn2.egg-info\requires.txt
writing pylearn2.egg-info\PKG-INFO
writing dependency_links to pylearn2.egg-info\dependency_links.txt
writing manifest file 'pylearn2.egg-info\SOURCES.txt'
reading manifest file 'pylearn2.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pylearn2.egg-info\SOURCES.txt'
running build_ext
cythoning pylearn2/utils/_window_flip.pyx to pylearn2/utils\_window_flip.c
building 'pylearn2.utils._window_flip' extension
creating build
creating build\temp.win-amd64-3.4
creating build\temp.win-amd64-3.4\Release
creating build\temp.win-amd64-3.4\Release\pylearn2
creating build\temp.win-amd64-3.4\Release\pylearn2\utils
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IE:\WinPython-64bit-3.4.4.1\python-3.4.4.amd64\lib\site-packages\numpy\core\include -IE:\WinPython-64bit-3.4.4.1\python-3.4.4.amd64\include -IE:\WinPython-64bit-3.4.4.1\python-3.4.4.amd64\include /Tcpylearn2/utils\_window_flip.c /Fobuild\temp.win-amd64-3.4\Release\pylearn2/utils\_window_flip.obj
Found executable C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\cl.exe
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:E:\WinPython-64bit-3.4.4.1\python3.4.4.amd64\libs /LIBPATH:E:\WinPython-64bit-3.4.4.1\python3.4.4.amd64\PCbuild\amd64 
/EXPORT:PyInit__window_flip build\temp.win-amd643.4\Release\pylearn2/utils\_window_flip.obj /OUT:E:\WinPython-64bit-3.4.4.1\download\pylearn2\pylearn2\utils\_window_flip.pyd
/IMPLIB:build\temp.win-amd64-3.4\Release\pylearn2/utils\_window_flip.lib
/MANIFESTFILE:build\temp.win-amd643.4\Release\pylearn2/utils\_window_flip.pyd.manifest
Found executable C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\link.exe
_window_flip.obj : warning LNK4197: export 'PyInit__window_flip' specified multiple times; using first specification
Creating library build\temp.win-amd643.4\Release\pylearn2/utils\_window_flip
.lib and object build\temp.win-amd64-3.4\Release\pylearn2/utils\_window_flip.exp

_window_flip.obj : error LNK2019: unresolved external symbol rand_r referenced in function__pyx_pf_8pylearn2_5utils_12_window_flip_2random_window_and_flip_c01b



**E:\WinPython-64bit-3.4.4.1\download\pylearn2\pylearn2\utils\_window_flip.pyd : fatal error LNK1120: 1 unresolved externals
error: Command "C:\Program Files (x86)\Microsoft Visual Studio12.0\VC\BIN\amd64\link.exe /DLL /nologo /INCREMENTAL:NO      /LIBPATH:E:\WinPython-64bit-3.4.4.1\python-3.4.4.amd64\libs     /LIBPATH:E:\WinPython-64bit-3.4.4.1\python-3.4.4.amd64\PCbuil
d\amd64 /EXPORT:PyInit__window_flip build\temp.win-amd64-3.4\Release\pylearn2/utils\_window_flip.obj /OUT:E:\WinPython-64bit-3.4.4.1\download\pylearn2\pylearn2\
utils\_window_flip.pyd /IMPLIB:build\temp.win-amd64-3.4\Release\pylearn2/utils\_
window_flip.lib /MANIFESTFILE:build\temp.win-amd64-3.4\Release\pylearn2/utils\_w
indow_flip.pyd.manifest"** **failed with exit status 1120**


推荐答案

我遇到了同样的问题,实际上是一个新问题,如果您想看一看,这里是: Github版本1572

I faced the same problem, in fact a faced a new one, if you want to have a look at it, here it is : Github Issue 1572.

我找到了一个简单的解决方法。

I found a simple workaround.

步骤如下:


  1. 从Github下载整个文件夹(我直接下载未克隆

  2. 进入 pylearn2-master 并找到一个名为 pylearn 的文件夹。

  3. 将此内容复制并放入您的 Lib\站点软件包中。

  1. Download the entire folder from Github (I directly downloaded it, did not clone; will probably make no difference.
  2. Go inside pylearn2-master and find a folder named pylearn.
  3. Copy this and place it in your Lib\Site-packages.

你是,你很好。 :)
尝试:导入pylearn2 看看是否可行。

And there you are, you are good to go. :) try : import pylearn2 and see if it works.

干杯。

这篇关于无法将pylearn2安装到WinPython-64bit-3.4.4.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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