我正在尝试下载pyspread。主页列出了我需要使用conda进行下载的一组依赖项。所有这些都很好,但是当我尝试运行pyspread时,收到以下错误消息:
> 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...
看来我没有安装wx.combo模块。我尝试重新安装wxPython,但没有任何改变。如果键入,我可以找到combo.py文件
$ ls /usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx
但我不确定这意味着什么。我对Linux还是很陌生,还没有取消它的背景。谢谢。
最佳答案
pip install-升级pyod
the result of this above code 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.1Successfully installed combo-0.1.0 pyod-0.7.9 suod-0.0.4
上面的代码将组合安装pyod,suod,如果您安装的是旧版本,则将全部安装在一起,它将删除安装新版本的代码
有关更多信息click here。
关于python - 没有名为combo的模块(来自import wx.combo)-pyspread,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/59359642/