python - 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.
解决方案
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 如果您安装了旧版本,它将删除安装新版本以获取更多信息,请单击此处。
推荐阅读
- c# - 将光标更改为自定义光标图像作为资源
- java - 如何使用 Firebase 将新的真实玩家添加到排行榜?
- rest - 如何在使用 8th Wall Web 时从 AFrame 进行 REST XMLHttpRequest 调用?
- php - 无法将带问号的黑色菱形转换为可读文本
- python - 熊猫比较 2 列,只保留匹配的单词字符串
- javascript - 如何修复 000webhost 中的 javascript 问题
- php - 在 PHP 中对 DateTime 对象数组进行排序 - 没有错误,数组未排序
- css - 向下滚动组件后,如何在不将组件恢复到原始位置的情况下设置“位置:固定”?
- python - 在两个不同的 python 程序之间传递开放连接
- java - RecyclerView 与每个单独项目内的另一个 RecyclerView/ListView