简体   繁体   English

如何在Mac上卸载Python / pygame / Homebrew?

[英]How to uninstall Python/pygame/Homebrew on Mac?

When trying to install pygame for Python3 on my mac I mainly followed this guide . 尝试在Mac上为Python3安装pygame时,我主要遵循此指南 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. 接下来,我尝试仅安装32位版本的Python2,然后从pygame.org中进行相应版本pygame的基本安装。 This actually got pygame working to a certain extent, but it crashes immediately when I try to run a script a colleague wrote. 这实际上在一定程度上使pygame正常工作,但是当我尝试运行一位同事编写的脚本时,它立即崩溃。

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. 我只想卸载所有内容并从头开始,以便希望能找到一种正确安装pygame的方法(如果有人可以向我指出不超过4岁的操作指南,那将是很好的选择),并永久解决我的终端路径问题。 I grew up on Windows, so I already have a hard time uninstalling "normal" programs since OS X lacks a formal uninstall tool. 我在Windows上长大,因此由于OS X缺少正式的卸载工具,因此我已经很难卸载“正常”程序。 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> 使用homebrew,您可以始终运行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. 对不起,您在使用unix时遇到了很多麻烦,它确实是一个了不起的操作系统,一旦您很好地了解了命令行,我发现比在Windows上完成工作要容易得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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