简体   繁体   中英

How to uninstall Python/pygame/Homebrew on Mac?

When trying to install pygame for Python3 on my mac I mainly followed this guide . However, this ultimately didn't accomplish anything, aside from screwing something up in my Terminal path and giving me the problem described here , which I can temporarily fix using the commands given in that thread, but I usually have to enter them again each time I close and re-open Terminal.

Next I tried just installing the 32-bit version of Python2 instead, and then doing the basic install of the corresponding version of pygame from pygame.org. This actually got pygame working to a certain extent, but it crashes immediately when I try to run a script a colleague wrote.

Which brings me here. I want to just uninstall everything and start from scratch so that I can hopefully find a way to correctly install pygame (it would be great if someone could point me to a guide for how to do this that isn't like 4 years old), and also to permanently fix the problem with my Terminal path. I grew up on Windows, so I already have a hard time uninstalling "normal" programs since OS X lacks a formal uninstall tool. So when it comes to uninstalling a program that was installed through Terminal and for which there is essentially no evidence of outside of some files in folders that are more or less hidden, I'm completely lost.

follow the steps for 'Adding in a Permanent Location'

And with homebrew you can always run brew uninstall <program-name>

I'm sorry you are having so much trouble with unix, it really is an awesome operating system and once you learn the command line well I find it is much easier to get things done than on windows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM