Removing PyCrypto on Fedora
by ArthurDent from LinuxQuestions.org on (#579A6)
Hello all,
I am working on a small personal cryptography project using Python 3.8 on my Fedora 32 machine.
I must (a long time ago) have installed the PyCrypto package and I now read that PyCrypto is deprecated in favour of PyCryptoDome.
I also read that the two libraries conflict and cannot co-exist.
So I set about uninstalling PyCrypto.
Code:$pip uninstall pycrypto
ERROR: Cannot uninstall 'pycrypto'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.hmmm... OK. So perhaps I installed it using Fedora's package manager...
Code:sudo dnf remove pycrypto
No match for argument: pycrypto
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!hmm... maybe it wasn't called pycrypto by DNF, or was included as part of some other package...Code:$ sudo dnf whatprovides pycrypto
Last metadata expiration check: 0:58:49 ago on Mon 24 Aug 2020 15:19:57 BST.
Error: No Matches foundNope...
So how do I uninstall PyCrypto? What am I missing?
Thanks for any help / suggestions.
ps This is the version I have:
Code:$ pip list | grep crypt
bcrypt 3.1.7
cryptography 2.8
pycrypto 2.6.1


I am working on a small personal cryptography project using Python 3.8 on my Fedora 32 machine.
I must (a long time ago) have installed the PyCrypto package and I now read that PyCrypto is deprecated in favour of PyCryptoDome.
I also read that the two libraries conflict and cannot co-exist.
So I set about uninstalling PyCrypto.
Code:$pip uninstall pycrypto
ERROR: Cannot uninstall 'pycrypto'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.hmmm... OK. So perhaps I installed it using Fedora's package manager...
Code:sudo dnf remove pycrypto
No match for argument: pycrypto
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!hmm... maybe it wasn't called pycrypto by DNF, or was included as part of some other package...Code:$ sudo dnf whatprovides pycrypto
Last metadata expiration check: 0:58:49 ago on Mon 24 Aug 2020 15:19:57 BST.
Error: No Matches foundNope...
So how do I uninstall PyCrypto? What am I missing?
Thanks for any help / suggestions.
ps This is the version I have:
Code:$ pip list | grep crypt
bcrypt 3.1.7
cryptography 2.8
pycrypto 2.6.1