Leopard 上的 MacPorts for Python
我还没有在使用 MacPorts 在 Leopard 上安装 python 3.1 的终端命令中找到任何具体语言。我已经通过 Apple 在 Leopard 上安装了 2.5.1。我不想搞乱这个版本&我认为从我的 opt/local 文件运行较新版本的 Python 会更好。 SQL3 还附带了 Leopard 上的标准 Python 版本。我是否需要通过 MacPorts 再次下载 SQL3 才能使其与 Python 3.1 配合使用?谢谢。
I haven't found any concrete language on the terminal commands for installing python 3.1 on Leopard using MacPorts. I already have 2.5.1 on Leopard by way of Apple. I don't want to mess with this version & I think having the newer version of Python running from my opt/local file would be better. Also SQL3 comes packed with the standard Python version on Leopard. Do I need to download SQL3 again via MacPorts in order for it to work with Python 3.1? thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
sudo port install python31
将安装 Python 3.1(进入/opt/local
)。一般来说,port install
将安装一个端口。您可以使用端口搜索
或在线搜索。MacPorts 将在
/opt/local
下安装所有内容,并且不会影响 Apple 提供的安装。MacPorts 将安装您需要的依赖项。
python31
依赖于sqlite3
,因此会自动下载并安装SQLite 3(在/opt/local
下——Apple版本不会受影响)。sudo port install python31
will install Python 3.1 (into/opt/local
). In general,port install <portname>
will install a port. You can find ports usingport search <string>
or search online.MacPorts will install everything under
/opt/local
, and won't touch your Apple-supplied installs.MacPorts will install the dependencies you need.
python31
depends onsqlite3
, so SQLite 3 will automatically be downloaded and installed (under/opt/local
-- Apple's version won't be touched).这是一种在任何地方安装所有 Python 风格的替代方法:
它使用系统附带的 Python 来引导进程。您还需要安装 Subversion。确保编辑 buildout.cfg 文件以添加/删除不需要的版本。
它还安装了 PIL、readline、setuptools、virtualenv 和其他一些好东西,值得一试。
Here's an alternative way to install all Python flavors wherever you want:
It uses the system shipped Python to bootstrap the process. You'll also need Subversion installed. Make sure to edit the buildout.cfg file to add/remove versions you don't need.
It also installs PIL, readline, setuptools, virtualenv and a few more goodies, it's worth a try.