Mac 平台新手,尝试恢复默认 python 安装

发布于 2024-08-20 08:30:55 字数 262 浏览 4 评论 0原文

我一直在尝试遵循 这篇博文 可以让我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

白龙吟 2024-08-27 08:30:55

步骤 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.

小镇女孩 2024-08-27 08:30:55

请注意,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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文