I get an error when trying to install keras:
我在尝试安装keras时遇到错误:
Installing 'keras' Unhandled exception: Traceback (most recent call last): File "C:\Program Files (x86)\IronPython 2.7\Lib\runpy.py", line 170, in run_module File "C:\Program Files (x86)\IronPython 2.7\Lib\runpy.py", line 101, in _get_module_details File "C:\Program Files (x86)\IronPython 2.7\Lib\pkgutil.py", line 456, in get_loader
File "C:\Program Files (x86)\IronPython 2.7\Lib\pkgutil.py", line 466, in find_loader File "C:\Program Files (x86)\IronPython 2.7\Lib\pkgutil.py", line 422, in iter_importers File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip__init__.py", line 13, in File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\exceptions.py", line 6, in File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip_vendor\six.py", line 701, in File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip_vendor\six.py", line 692, in exec_ File "C:\Program Files (x86)\IronPython 2.7\Lib\runpy.py", line 109, in _get_module_details AttributeError: 'module' object has no attribute '_getframe'安装'keras'未处理的异常:回溯(最近一次调用最后一次):文件“C:\ Program Files(x86)\ IronPython 2.7 \ Lib \ runpy.py”,第170行,在run_module文件“C:\ Program Files(x86) )\ IronPython 2.7 \ Lib \ runpy.py“,第101行,在_get_module_details文件”C:\ Program Files(x86)\ IronPython 2.7 \ Lib \ pkgutil.py“,第456行,在get_loader文件中”C:\ Program Files (x86)\ IronPython 2.7 \ Lib \ pkgutil.py“,第466行,在find_loader文件”C:\ Program Files(x86)\ IronPython 2.7 \ Lib \ pkgutil.py“,第422行,在iter_importers文件中”C:\程序文件(x86)\ IronPython 2.7 \ lib \ site-packages \ pip__init __。py“,第13行,在文件”C:\ Program Files(x86)\ IronPython 2.7 \ lib \ site-packages \ pip \ exceptions.py“中第6行,在文件“C:\ Program Files(x86)\ IronPython 2.7 \ lib \ site-packages \ pip_vendor \ six.py”中,第701行,在文件“C:\ Program Files(x86)\ IronPython 2.7 \”中lib \ site-packages \ pip_vendor \ six.py“,第692行,在exec_文件中”C:\ Program Files(x86)\ IronPython 2.7 \ Lib \ runpy.py“,第109行,在_get_module_details中AttributeError:'m odule'对象没有属性'_getframe'
'keras' failed to install. Exit code: 1
'keras'无法安装。退出代码:1
1 个解决方案
#1
0
(pasting what I wrote on Keras mailing list for your question, then extended)
(粘贴我在Keras邮件列表上为你的问题写的内容,然后扩展)
It seems that IronPython does not support setuptools, which is used by Keras for installation. I've never used VisualStudio for Python, but it looks like you can use regular CPython too. Try it.
似乎IronPython不支持keras用于安装的setuptools。我从来没有使用VisualStudio for Python,但看起来你也可以使用常规的CPython。尝试一下。
As for now, I don't think you can make Keras work under IronPython, because its dependencies do not work there. Theano doesn't (this is from 2011, but I couldn't find any newer post), nor does Tensorflow. So even if you somehow overcame the setuptools issue (e.g. by just copying files instead of using an installer), it would still be broken.
至于现在,我认为你不能让Keras在IronPython下工作,因为它的依赖关系在那里不起作用。 Theano没有(这是2011年,但我找不到任何更新的帖子),Tensorflow也没有。所以,即使你以某种方式克服了setuptools问题(例如只是通过复制文件而不是使用安装程序),它仍然会被打破。
#1
0
(pasting what I wrote on Keras mailing list for your question, then extended)
(粘贴我在Keras邮件列表上为你的问题写的内容,然后扩展)
It seems that IronPython does not support setuptools, which is used by Keras for installation. I've never used VisualStudio for Python, but it looks like you can use regular CPython too. Try it.
似乎IronPython不支持keras用于安装的setuptools。我从来没有使用VisualStudio for Python,但看起来你也可以使用常规的CPython。尝试一下。
As for now, I don't think you can make Keras work under IronPython, because its dependencies do not work there. Theano doesn't (this is from 2011, but I couldn't find any newer post), nor does Tensorflow. So even if you somehow overcame the setuptools issue (e.g. by just copying files instead of using an installer), it would still be broken.
至于现在,我认为你不能让Keras在IronPython下工作,因为它的依赖关系在那里不起作用。 Theano没有(这是2011年,但我找不到任何更新的帖子),Tensorflow也没有。所以,即使你以某种方式克服了setuptools问题(例如只是通过复制文件而不是使用安装程序),它仍然会被打破。