MacPorts 安装 python25 和 py25-gtk

发布于 2024-12-18 18:59:24 字数 949 浏览 4 评论 0原文

我运行的是 Mac OSX 10.5.8。我最近安装了一个兼容的 macports 版本:MacPorts-2.0.3-10.5-Leopard.dmg。我正在尝试使用它来安装 python25 和 py25-gtk,我之前在其他 Mac 系统上做过,尽管它们是 10.6.*。

我已经在这台机器上安装了 python 2.5,但我重复了端口安装,因为我过去已经这样做过。安装 macports 后,我执行了以下命令及其输出。

sudo port -v install python25

--->计算 python25 的依赖关系

--->清理python25

--->删除 python25 的工作目录

sudo port -v install python_select

--->清理 python_select

--->删除 python_select 的工作目录

sudo python_select python25

sudo: python_select: command not find

不用说 python_select 没有正确安装。我还尝试安装 py25-gtk

sudo port -v install py25-gtk

,这需要一些时间来安装(几个小时)。它似乎安装正确,但当我从 python shell 运行 import gtk 时,我什么也没得到。

macports 似乎没有安装 python25 和 python_select,除非它们已经安装并且 shell 配置文件有问题。基本上我需要的只是 pygtk 来与我已有的 python25 一起使用。如果有人有任何想法,我们将不胜感激。

谢谢!

I am running Mac OSX 10.5.8. I recently installed a version of macports that is compatible: MacPorts-2.0.3-10.5-Leopard.dmg. I am trying to use this to install python25 and py25-gtk, which I have done before on other Mac systems, although they were 10.6.*.

I already have python 2.5 on this machine, but I repeated the port install just because I had done this in the past. After macports installed, I did the following commands followed by their output.

sudo port -v install python25

---> Computing dependencies for python25

---> Cleaning python25

---> Removing work directory for python25

sudo port -v install python_select

---> Cleaning python_select

---> Removing work directory for python_select

sudo python_select python25

sudo: python_select: command not found

Needless to say python_select did not install correctly. I also tried installing py25-gtk

sudo port -v install py25-gtk

and this takes some time to install (a few hours). It seemed to install correctly, but still when I ran import gtk from my python shell i got nothing.

It seems macports is not installing the python25 and python_select, unless these are already installed and there is something wrong with the shell profile. Basically all I need is pygtk to work with my python25 that I already have. If anyone has any ideas it would be greatly appreciated.

Thanks!

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

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

发布评论

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

评论(1

£冰雨忧蓝° 2024-12-25 18:59:24

python_select 已被 port select 取代

要查看可能运行的 python

port select --list python

从该列表中选择您想要的并更改为它,例如

sudo port select --set python python25

python_select has been replaced by port select

To see the possible pythons run

port select --list python

From that list choose the one you want and change to it e.g.

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