#windows #python-2.7 #scipy #theano #mingw32
#Windows #python-2.7 #scipy #theano #mingw32
Вопрос:
Я пытаюсь установить theano в Windows 7 с помощью mingw32. В процессе я также должен установить scipy, но при попытке сделать это я получаю это сообщение об ошибке:
### Warning: Using unoptimized lapack ###
### Warning: Using unoptimized lapack ###
warning: no previously-included files matching '*.pyo' found anywhere in dis
tribution
warning: no previously-included files matching '*.pyd' found anywhere in dis
tribution
objdump.exe: C:Windowswinsxsamd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0
.21022.8_none_750b37ff97f4f68bmsvcr90.dll: File format not recognized
Looking for python27.dll
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:users22193appdatalocaltemppip-build-aoxj5gscipysetup.py",
line 415, in <module>
setup_package()
File "c:users22193appdatalocaltemppip-build-aoxj5gscipysetup.py",
line 411, in setup_package
setup(**metadata)
File "c:python27libdistutilscore.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "buildbdist.win-amd64eggsetuptoolsdist.py", line 269, in __init__
File "buildbdist.win-amd64eggsetuptoolsdist.py", line 313, in fetch_bu
ild_eggs
File "buildbdist.win-amd64eggpkg_resources__init__.py", line 826, in r
esolve
File "buildbdist.win-amd64eggpkg_resources__init__.py", line 1092, in
best_match
File "buildbdist.win-amd64eggpkg_resources__init__.py", line 1104, in
obtain
File "buildbdist.win-amd64eggsetuptoolsdist.py", line 380, in fetch_bu
ild_egg
File "buildbdist.win-amd64eggsetuptoolscommandeasy_install.py", line
640, in easy_install
File "buildbdist.win-amd64eggsetuptoolscommandeasy_install.py", line
670, in install_item
File "buildbdist.win-amd64eggsetuptoolscommandeasy_install.py", line
850, in install_eggs
File "buildbdist.win-amd64eggsetuptoolscommandeasy_install.py", line
1078, in build_and_install
File "buildbdist.win-amd64eggsetuptoolscommandeasy_install.py", line
1064, in run_setup
File "buildbdist.win-amd64eggsetuptoolssandbox.py", line 246, in run_s
etup
File "c:python27libcontextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "buildbdist.win-amd64eggsetuptoolssandbox.py", line 195, in setup
_context
File "c:python27libcontextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "buildbdist.win-amd64eggsetuptoolssandbox.py", line 166, in save_
modules
File "buildbdist.win-amd64eggsetuptoolssandbox.py", line 141, in resum
e
File "buildbdist.win-amd64eggsetuptoolssandbox.py", line 154, in save_
modules
File "buildbdist.win-amd64eggsetuptoolssandbox.py", line 195, in setup
_context
File "buildbdist.win-amd64eggsetuptoolssandbox.py", line 243, in run_s
etup
File "buildbdist.win-amd64eggsetuptoolssandbox.py", line 273, in run
File "buildbdist.win-amd64eggsetuptoolssandbox.py", line 242, in runne
r
File "buildbdist.win-amd64eggsetuptoolssandbox.py", line 46, in _execf
ile
File "c:users22193appdatalocaltempeasy_install-3hk03bnumpy-1.11.2s
etup.py", line 386, in <module>
# Raise errors for unsupported commands, improve help output, etc.
File "c:users22193appdatalocaltempeasy_install-3hk03bnumpy-1.11.2s
etup.py", line 378, in setup_package
test_suite='nose.collector',
File "c:users22193appdatalocaltempeasy_install-3hk03bnumpy-1.11.2n
umpydistutilscore.py", line 169, in setup
File "c:python27libdistutilscore.py", line 151, in setup
dist.run_commands()
File "c:python27libdistutilsdist.py", line 953, in run_commands
self.run_command(cmd)
File "c:python27libdistutilsdist.py", line 972, in run_command
cmd_obj.run()
File "buildbdist.win-amd64eggsetuptoolscommandbdist_egg.py", line 160
, in run
File "c:python27libdistutilscmd.py", line 326, in run_command
self.distribution.run_command(command)
File "c:python27libdistutilsdist.py", line 972, in run_command
cmd_obj.run()
File "c:users22193appdatalocaltempeasy_install-3hk03bnumpy-1.11.2n
umpydistutilscommandbuild_clib.py", line 83, in run
File "c:users22193appdatalocaltempeasy_install-3hk03bnumpy-1.11.2n
umpydistutilsccompiler.py", line 596, in new_compiler
File "c:users22193appdatalocaltempeasy_install-3hk03bnumpy-1.11.2n
umpydistutilsmingw32ccompiler.py", line 96, in __init__
File "c:users22193appdatalocaltempeasy_install-3hk03bnumpy-1.11.2n
umpydistutilsmingw32ccompiler.py", line 360, in build_msvcr_library
File "c:users22193appdatalocaltempeasy_install-3hk03bnumpy-1.11.2n
umpydistutilsmingw32ccompiler.py", line 274, in generate_def
ValueError: Symbol table not found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:users22193ap
pdatalocaltemppip-build-aoxj5gscipy
C:Python27Scripts>
Есть ли обходной путь? Я попытался установить scipy через http://www.lfd.uci.edu /~gohlke/pythonlibs/ но я получаю ошибку совместимости для 64-разрядной версии, пытающейся работать с mingw32. Я создал библиотеки lapack и blas из исходных текстов, используя mingw для scipy.
Комментарии:
1. Scipy-компиляция в Windows — это боль! Я бы настоятельно рекомендовал что-то вроде anaconda , которое даже рекомендуют разработчики scipy. (Есть также некоторые неофициальные сборки theano для conda).
Ответ №1:
я смог решить эту проблему, установив mingw64 вместо mingw32.