i get this:
mint@amint:~/.local/bin$ ./electrum
Error: at least one of ('pycryptodomex', 'cryptography') needs to be installed.
Then i run this to install pycryptodomex
$ sudo apt-get install build-essential python3-dev
$ pip install pycryptodomex
and this
$ pip install pycryptodome
The first command on the installation page installs python-cryptography which is the main dependency for Electrum. Pycryptodome isn't a requirement.
Back to my original question, are these both commands python3 -m pip install --user & sudo pip3 do the same thing?
Yes. They're the same, except --user installs it for the current user that is running the command in the terminal.
python3 and pip3 are the same?
No. pip3 is the package installer for python3. The other command also calls pip as well.
And since the second command works for me, can i continue using Electrum installed that way, without compromising security or privacy? Will it work without conflicts with a setup i am planning to do: Core+Tor+Electrum+EPS+Trezor?
Yes.
After many attempts installing and uninstalling electrum, then isntalling and updating python3, pip, pycryptodomex, pycryptodome and few others something happened to pyqt5. Before i could run Electrum without installing, just running it with command python3 Electrum-4.1.4/run_electrum
Now i get errors: ModuleNotFoundError: No module named 'PyQt5', Error: Could not import PyQt5 on Linux systems, you may try 'sudo apt-get install python3-pyqt5
Though i have latest Python 3.9.6 and ppip 21.1.3, and when i do as it says in error and run sudo apt-get install python3-pyqt5 i see that i already have it: python3-pyqt5 is already the newest version (5.14.1+dfsg-3build1),0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
.
Might be an issue with the pythonpath or the module itself.
To check for paths, pass
in the terminal to open up the python shell:
>>> import sys
>>> print(sys.path)
>>> exit()
You should see one of the paths being /usr/lib/python3/dist-packages, navigate there and check if the dependencies are present. You can also try to purge the modules if needed: apt-get purge python3-pyqt5.
I've been trying to replicate the issue with my own Linux Mint 20.10 but I can't replicate it at all. The commands listed are all working just fine. I'd say, if your current shortcut with the other installation guide works, then it is fine as well. As long as you can backup your seeds, then there shouldn't be a problem.