I use Python on my Fedora KDE (x64) PC. I used to have Fedora 25, and I had installed Python 3.5 using
sudo dnf install python3 and several packages like
scipy using commands like
sudo dnf install python3-numpy. Now not all the suitable packages or versions were available on fedora repositories, so those alone I installed in
pip3 install <packagename> --user.
Fast forward, and I upgraded Fedora to version 28, during which
python3 had been upgraded to version 3.6. All the other
python3-*packages have also been suitably upgraded. Now pip3 does not recognise any user-installed packages as in
pip3 list --user, returning no output at all. But the
~/.local/lib/python3.5/site-packages/ directory still exists and has a bunch of packages.
Now I am not sure what I should do....
- I can maybe delete the contents of
site-packages, if I knew exactly what can be deleted? Then I can set about re-investigating what packages really need to be installed via pip now.
- I can maybe rename the
- Some other way to make pip import the contents of the old user-installed python packages?
I am kind of lost on how to proceed.