[英]Can't import in python
Sorry, I am a bit new to this language 抱歉,我对这种语言有点陌生
I am trying to import Gooey into my program like this 我试图像这样将Gooey导入到我的程序中
from gooey import Gooey
@Gooey
def main():
rest of code
but my console says 但是我的控制台说
Traceback (most recent call last):
File "C:\Users\Robertan111\workspace\test\test.py", line 3, in <module>
from gooey import Gooey
File "C:\Python27\lib\site-packages\gooey\__init__.py", line 2, in <module>
from gooey.python_bindings.gooey_decorator import Gooey
File "C:\Python27\lib\site-packages\gooey\python_bindings\gooey_decorator.py", line 50, in <module>
import wx
ImportError: No module named wx
I don't even know what wx is 我什至不知道wx是什么
This isn't made all that clear by the Gooey project, but their setup.py
setup stript includes the line: Gooey项目并没有明确说明这一点,但是他们的
setup.py
setup stript包含以下内容:
dependency_links = ["http://www.wxpython.org/download.php"],
You'll need to download and install wxPython project (which provides the wx
package) from http://www.wxpython.org/download.php 您需要从http://www.wxpython.org/download.php下载并安装wxPython项目(提供
wx
软件包) 。
The dependency_links
list is not the place to put such information; dependency_links
列表不是放置此类信息的地方; they should really add that to their installation instructions. 他们应该将其真正添加到安装说明中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.