Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named sip

I have installed electrum alongwith python 3.4, But when i run electrum it gives me below error. And I installed pyqt5 without --no-deps.

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'

I also upgraded pip. Getting error with 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.
like image 324
blaCkninJa Avatar asked Nov 07 '22 05:11

blaCkninJa


1 Answers

I think the problem is because you are using Python 3.4.

According to the documentation of PyQt5, if you install from wheel, Python 3.5 is the minimum requirement.

like image 51
STREETKILLER007 Avatar answered Nov 15 '22 13:11

STREETKILLER007