我刚刚将我的xcode升级到4.5.2并运行
xcode-select -switch /Applications/Xcode.app/Contents/Developer但是当我尝试安装pygtk时,我得到一个错误:
fink install pygtk2-gtk-py27输出:
Information about 6815 packages read in 0 seconds.
Can't resolve dependency "xcode (>= 4.4)" for package "pixman-0.28.2-1" (no
matching packages/versions found)
Exiting with failure.我该如何纠正这个问题呢?另外,我只是尝试用这种方式安装pygtk,因为其他方式对我的mac不起作用。当我用python运行以下命令时:
import gtk如果我用homebrew安装,我得到一个错误,说它找不到gtk。当我按照where-is-pygtk-for-mac-os-x中的第二个答案从macpkg安装时,我得到了一个分段错误
发布于 2013-01-27 03:43:44
除了升级我的Xcode之外,还需要(再次)安装命令行工具。有关此过程的说明,请参阅this answer。
https://stackoverflow.com/questions/14514187
复制相似问题