Post
Topic
Board Electrum
Merits 3 from 2 users
Topic OP
How to install Electrum in Ubuntu 24.02?
by
rbscebu
on 18/02/2025, 04:19:29 UTC
⭐ Merited by Halab (2) ,ABCbits (1)
I am having a lot of trouble trying to install Electrum on my PC using Ubuntu 24.02. What I want to do is install Electrum on Ubuntu 24.02 so that there is an icon on the screen's Dash that I can click on and directly open the Electum wallet program. Following the instructions at https://electrum.org/#download for Installation from Python sources, I have;

installed the dependencies
Code:
sudo apt-get install python3-pyqt5 libsecp256k1-dev python3-cryptography
,

downloaded package to my Home directory
Code:
wget https://download.electrum.org/4.5.8/Electrum-4.5.8.tar.gz
and

verified signatures
Code:
wget https://download.electrum.org/4.5.8/Electrum-4.5.8.tar.gz.asc
Code:
gpg --verify Electrum-4.5.8.tar.gz.asc
.

Next I tried to install the package using
Code:
sudo apt-get install python3-setuptools python3-pip
Code:
python3 -m pip install --user Electrum-4.5.8.tar.gz
and got the following returned;

Quote
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
   
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
   
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
   
    See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

After extracting the files from the Electrum-4.5.8.tar.gz folder, I can run this electrum wallet by opening the Electrum-4.5.8 folder, right-clicking on the run_electrum file and selecting "Run as a Program" but first a terminal window opens telling me that "QSocketNotifier: Can only be used with threads started with QThread". I just ignore this and continue using my Electum wallet without difficulty.

Where have I gone wrong and how can I achieve my aim of installing the Electrum wallet with a working icon in the screen's Dash? Any help/guidance would be most appreciated.