Re: How to clean up Python in Fedora 38

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Sep 4, 2023, at 11:35, Javier Perez <pepebuho@xxxxxxxxx> wrote:
> I installed Pycharm to learn python, installed some libraries using pip, totally sure I must have screwed up something although I have not felt the effect yet.
> My question is, how can I go back to default without reinstalling my whole linux setup from scratch? This is also my personal computer and I am sure there are customizations even I forgot I set up in general. It would be kind of a pain.
> I know I cannot delete totally Python because linux uses it heavily nowadays.
> My goal is to delete whatever was installed through pip and stick to packages from the repositories and reinstall a programming environment in a reasoned, less haphazzard/ad hoc way.

Did you use ‘sudo pip install …’ or just pip as your regular user?  Because if you just used your regular user, it’s most likely sitting in a directory in ~/.local/lib/python3.*  and you can just delete everything in there and not affect the OS packages.

If you used sudo, most likely it’s all in /usr/local/lib/python3.* and /usr/local/share/python3.* but it might be worth running ‘rpm -Va python*’ and reinstall any packages that fail checksum verification.

If you want to play with pip I really suggest leaning to love Python virtual environments (the venv module) since they are really good for containing everything in a directory.  If you must use sudo pip, check out podman container toolbox to keep it from breaking your OS.  Container toolboxes might not work with your IDE though, I tend to use emacs so I’ve never had a problem.

Jonathan Billings
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct:
List Guidelines:
List Archives:
Do not reply to spam, report it:

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux