MacPorts 安装 python25 和 py25-gtk
我运行的是 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
python_select 已被 port select 取代
要查看可能运行的 python
从该列表中选择您想要的并更改为它,例如
python_select has been replaced by port select
To see the possible pythons run
From that list choose the one you want and change to it e.g.