ImportError:没有名为sip的模块

时间:2018-06-11 08:33:10

标签: python-3.x centos-6.9

我已经使用python 3.4安装了电子设备,但是当我运行电子设备时它会给我以下错误。我没有--no-deps安装了pyqt5。

pip3.4 install pyqt5 --no-deps

pip3.4 install https://download.electrum.org/3.1.3/Electrum-3.1.3.tar.gz

#electrum 
Traceback (most recent call last):
File "/usr/local/bin/electrum", line 418, in <module>
d.init_gui(config, plugins)
File "/usr/local/lib/python3.4/site-packages/electrum/daemon.py", line 308, in init_gui
gui = __import__('electrum_gui.' + gui_name, fromlist=['electrum_gui'])
File "/usr/local/lib/python3.4/site-packages/electrum_gui/qt/__init__.py", line 35, in <module>
from PyQt5.QtGui import *
ImportError: No module named 'sip'

我也升级了点子。使用deps获取错误: pip3.4 install pyqt5

# pip3.4 install pyqt5
Requirement already satisfied: pyqt5 in /usr/local/lib/python3.4/site-packages
Collecting sip>=4.19.1 (from pyqt5)
Could not find a version that satisfies the requirement sip>=4.19.1 (from pyqt5) (from versions: )
No matching distribution found for sip>=4.19.1 (from pyqt5)
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

1 个答案:

答案 0 :(得分:0)

我认为问题是因为您使用的是Python 3.4。

根据documentation of PyQt5,如果从wheel安装,则最低要求是Python 3.5。

希望有帮助。