Whenever I try to install a package ('theano', in this case) it gives me this:
每当我尝试安装一个包('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' -----
Sorry, I'm not sure what else to say or do. Note that this happens with other packages, too.
对不起,我不知道还能说些什么或做什么。请注意,这也适用于其他软件包。
1 个解决方案
#1
1
The problem is the -X:FullFrames
attribute, which will not be set when Visual Studio
executed the commands for installing packages. Take a look at this SO answer How can I use –X:Frames in Ironpython?.
问题是-X:FullFrames属性,当Visual Studio执行安装包的命令时,不会设置该属性。看看这个SO答案如何在Ironpython中使用-X:Frames?
This important part is:
这个重要的部分是:
IronPython Tools for Visual Studio has been deprecated by Python Tools for Visual Studio (see http://pytools.codeplex.com). Using Python Tools in VS 2010: > open Tools=>Options=>Python Tools=>Interpreter Options and add "-X:FullFrames" to the "Interactive Window Options" field.
Visual Studio的Python工具已弃用IronPython Tools for Visual Studio(请参阅http://pytools.codeplex.com)。在VS 2010中使用Python工具:>打开工具=>选项=> Python工具=>解释器选项,并在“交互式窗口选项”字段中添加“-X:FullFrames”。
#1
1
The problem is the -X:FullFrames
attribute, which will not be set when Visual Studio
executed the commands for installing packages. Take a look at this SO answer How can I use –X:Frames in Ironpython?.
问题是-X:FullFrames属性,当Visual Studio执行安装包的命令时,不会设置该属性。看看这个SO答案如何在Ironpython中使用-X:Frames?
This important part is:
这个重要的部分是:
IronPython Tools for Visual Studio has been deprecated by Python Tools for Visual Studio (see http://pytools.codeplex.com). Using Python Tools in VS 2010: > open Tools=>Options=>Python Tools=>Interpreter Options and add "-X:FullFrames" to the "Interactive Window Options" field.
Visual Studio的Python工具已弃用IronPython Tools for Visual Studio(请参阅http://pytools.codeplex.com)。在VS 2010中使用Python工具:>打开工具=>选项=> Python工具=>解释器选项,并在“交互式窗口选项”字段中添加“-X:FullFrames”。