在mac Mavericks上卸载python

时间:2014-03-13 03:07:57

标签: python macos uninstall

我是新用户。我安装了python 2.7.6但我无法运行我的脚本(通过IDLE或简单的脚本)。我想重新安装它,但我不想弄乱预装在mac上的版本。 谢谢您的帮助。 注意:stackOverflow上有类似于我的问题,但它们没有解决预安装版本的python的问题。还是无关紧要?

1 个答案:

答案 0 :(得分:0)

要卸载python,请参阅:How to uninstall Python 2.7 on a Mac OS X 10.6.4?

一个可能的解决方案是指定在编写脚本时使用哪个python解释器。或者你可以指定一个python别名,存储你想要使用的python解释器并将其保存到.bash_profile。

这也可能会引导您找到正确的方向: Setting default interpreter for a python script