首页 > 解决方案 > No module named combo (from import wx.combo) - pyspread

问题描述

I am attempting to download pyspread. The homepage lists a set of dependencies that need downloading which I do using conda. All this is fine, but when I try to run pyspread I receive the following error message:

>     Traceback (most recent call last):   
> File "/usr/bin/pyspread", line 191, in OnInit
>     from src.gui._main_window import MainWindow   File "/usr/share/pyspread/src/gui/_main_window.py", line 54, in <module>
>     from src.gui._toolbars import MainToolbar, MacroToolbar, FindToolbar   File "/usr/share/pyspread/src/gui/_toolbars.py", line
> 51, in <module>
>     from _gui_interfaces import ModalDialogInterfaceMixin   File "/usr/share/pyspread/src/gui/_gui_interfaces.py", line 52, in <module>
>     from _dialogs import DimensionsEntryDialog, AboutDialog   File "/usr/share/pyspread/src/gui/_dialogs.py", line 61, in <module>
>     from src.gui._widgets import PythonSTC   File "/usr/share/pyspread/src/gui/_widgets.py", line 56, in <module>
>     import wx.combo ImportError: No module named combo OnInit returned false, exiting...

It seems that I don't have the wx.combo module installed. I have tried reinstalling wxPython and nothing has changed. I can find the combo.py file if I type

$ ls /usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx

but I'm not sure what that means. I am very new to Linux and don't yet have the background to unpick this. Thank you.

标签: pythonlinuxmodulepackage

解决方案


pip install --upgrade pyod 上面代码的结果

Installing collected packages: combo, suod, pyod Attempting uninstall: pyod Found existing installation: pyod 0.7.7.1 Uninstalling pyod-0.7.7.1: Successfully uninstalled pyod-0.7.7.1 Successfully installed combo-0.1.0 pyod-0.7.9 suod-0.0.4

上面的代码将安装组合,pyod,suod 如果您安装了旧版本,它将删除安装新版本以获取更多信息,请单击此处


推荐阅读