在 Snow Leopard 上升级 Python 有什么缺点吗?

发布于 2024-08-20 10:34:50 字数 120 浏览 2 评论 0 原文

我想通过安装程序包在 Snow Leopard 上使用最新版本的 Python,但我读过一些有关升级时冲突的令人困惑的文章。我打算在 Eclipse 中使用 PyDev,如果升级的话会与 Snow Leopard 发生冲突吗?

I want to use the newest version of Python on Snow Leopard using the installer package, but I've read some confusing articles about conflicts when upgrading. I plan on using PyDev in Eclipse, will there be any conflicts with Snow Leopard if I upgrade?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

孤独岁月 2024-08-27 10:34:50

明确回答您的问题:在 SL 上升级 Python 有什么缺点吗?仅当您升级系统安装时。它可能会对任何使用 Python 的系统/CLI 工具以及任何使用 的捆绑应用程序 (.app) 产生奇怪的影响PyObjC 运行时库。

如果您有这样的要求,我不会升级、纠缠或以其他方式修改 Python 的默认安装。最好使用 MacPorts 在备用位置安装 Python 的升级版本。

默认情况下,MacPorts 将所有内容安装到 /opt/local(即 /opt/local/bin/python)中。然后,您还可以安装python_select,它会进行一些调整,以确保根据您的PATH选择您选择的版本。

您可能需要考虑将 virtualenvpip 也用于管理此环境,除非您习惯了 MacPorts。需要考虑的事项!

To answer your question explicitly: Are there any downsides to upgrading Python on SL? Only if you upgrade the system installation. It can have strange repercussions on any system/CLI tools that use Python, and on any bundled applications (.app) that are utilizing PyObjC runtime libraries.

I would not upgrade, tangle with, or otherwise modify the default installation of Python, if that's what you are asking. You are much better off installing an upgraded version of Python in an alternate location using MacPorts.

MacPorts installs everything into /opt/local (i.e. /opt/local/bin/python) by default. You can then also install python_select which does some jiggering to make sure that whichever version you choose will be preferred based on your PATH.

You might want to consider using virtualenv coupled with pip for managing this environment as well, unless you become accustomed to MacPorts. Things to consider!

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