在 ubuntu 18.04 上安装 mu 编辑器时出错

在 ubuntu 18.04 上安装 mu 编辑器时出错

我无法在 ubuntu 上安装 mu 编辑器。下面我将复制它的内容。我尝试了很多方法,也许我把一切都搞砸了

-PC:~$ pip3 install mu-editor
Defaulting to user installation because normal site-packages is not writeable
Collecting mu-editor
  Using cached mu_editor-1.0.3-py3-none-any.whl (2.0 MB)
Collecting qtconsole==4.3.1
  Using cached qtconsole-4.3.1-py2.py3-none-any.whl (108 kB)
Collecting semver>=2.8.0
  Downloading semver-2.13.0-py2.py3-none-any.whl (12 kB)
Collecting pycodestyle==2.4.0
  Using cached pycodestyle-2.4.0-py2.py3-none-any.whl (62 kB)
Collecting pyserial==3.4
  Downloading pyserial-3.4-py2.py3-none-any.whl (193 kB)
     |████████████████████████████████| 193 kB 175 kB/s 
Collecting mu-editor
  Using cached mu_editor-1.0.2-py3-none-any.whl (2.0 MB)
Collecting requests>=2.19.1
  Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting gpiozero>=1.4.1
  Downloading gpiozero-1.6.2-py2.py3-none-any.whl (148 kB)
     |████████████████████████████████| 148 kB 86 kB/s 
Collecting pyflakes==2.0.0
  Downloading pyflakes-2.0.0-py2.py3-none-any.whl (53 kB)
     |████████████████████████████████| 53 kB 72 kB/s 
Collecting guizero>=0.5.2
  Downloading guizero-1.2.0-py3-none-any.whl (42 kB)
     |████████████████████████████████| 42 kB 54 kB/s 
Collecting pigpio>=1.40.post1
  Downloading pigpio-1.78-py2.py3-none-any.whl (39 kB)
Collecting mu-editor
  Using cached mu_editor-1.0.1-py3-none-any.whl (1.9 MB)
  Using cached mu_editor-1.0.0-py3-none-any.whl (1.7 MB)
ERROR: Cannot install mu-editor==1.0.0, mu-editor==1.0.1, mu-editor==1.0.2 and mu-editor==1.0.3 because these package versions have conflicting dependencies.

The conflict is caused by:
    mu-editor 1.0.3 depends on qscintilla==2.11.4
    mu-editor 1.0.2 depends on PyQtChart==5.11.3
    mu-editor 1.0.1 depends on qscintilla==2.10.7
    mu-editor 1.0.0 depends on qscintilla==2.10.7

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

答案1

您的库版本有冲突。

在我的 18.04 LTS 系统上,所有软件包均来自官方存储库([电子邮件保护][电子邮件保护]mu-editor)我已经通过使用以下命令调整Python3包版本正常安装:

pip3 install --user qscintilla==2.10 PyQtChart==5.9.2 pyqt5==5.9.2 mu-editor==1.0.3

如果你使用相同的python3版本,但升级了[电子邮件保护]您可以使用以下安装命令:

pip3 install --user qscintilla==2.11.4 mu-editor==1.0.3

请注意mu-editor deb 软件包自 20.04 LTS 起仅出现在官方 Ubuntu 存储库中。

相关内容