每当我尝试安装软件包(' theano',在这种情况下),它就会给我这个:
----- Installing 'theano' -----
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 <module>
File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\exceptions.py", line 6, in <module>
File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\six.py", line 701, in <module>
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'
----- Failed to install 'theano' -----
抱歉,我不知道还能说些什么或做什么。请注意,这也适用于其他软件包。
答案 0 :(得分:1)
问题是-X:FullFrames
属性,当Visual Studio
执行安装包的命令时,不会设置该属性。看一下这个SO答案How can I use –X:Frames in Ironpython?。
这个重要的部分是:
Visual Studio的Python工具已弃用Visual Studio的IronPython工具(请参阅http://pytools.codeplex.com)。在VS 2010中使用Python工具:&gt; open Tools =&gt; Options =&gt; Python Tools =&gt; Interpreter Options并将“-X:FullFrames”添加到“Interactive Window Options”字段。