Mac 平台新手,尝试恢复默认 python 安装
我一直在尝试遵循 这篇博文 可以让我的 python 版本恢复到雪豹默认值。我已经按照前两个步骤进行操作,没有出现任何问题,但在执行第 3 步和第 4 步时却迷失了方向。我安装了 Python 2.6.4,但我认为说明非常相似。感谢您的帮助!
I've been trying to follow this blog post to get my python version back to the snow leopard default. I have followed the first two steps without a problem but am lost when it comes to 3 and 4. I installed Python 2.6.4 but I assume the instructions are pretty similar. Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
步骤 3:
sudo rm /usr/local/bin/python
步骤 4:
ls ~/.bash_profile.pysave
如果文件存在:
rm ~/.bash_profile && mv ~/.bash_profile.pysave ~/.bash_profile
此时您可能需要关闭 shell/终端并打开一个新的。运行 Python 并看看它会告诉你什么。
Step 3:
sudo rm /usr/local/bin/python
Step 4:
ls ~/.bash_profile.pysave
If the file exists:
rm ~/.bash_profile && mv ~/.bash_profile.pysave ~/.bash_profile
You will probably want to close your shell / Terminal and open a new one at this point. Run Python and see what it tells you.
请注意,Snow Leopard 附带一辆越野车 IDLE。您将无法用它创建新文档。如果您使用其他编辑器,它可能不会打扰您。我使用以下版本:
Python 2.6.4(r264:75821M,2009 年 10 月 27 日,19:48:32)
Please be aware that Snow Leopard ships with a buggy IDLE. You will not be able to create a new document with it. If you will use another editor, it may not bother you. I a working with the following version:
Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)