在 Mac OS Tiger 上安装 PIL 时出错

发布于 2024-09-03 17:24:12 字数 338 浏览 1 评论 0 原文

我尝试在 Mac OS X 10.4 上安装 Python 成像库,但出现错误。我不确定错误从哪里开始,它只是执行 sudo python setup.py install 时的一大堆文本。

但最后几行是:

...
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccNKvQpP.out (No such file or directory)
error: command 'gcc' failed with exit status 1

我用谷歌搜索过,但没有一个结果有效。

I'm trying to install the Python Imaging Library on Mac OS X 10.4, but I get errors. I'm not sure where the error starts, it's just a huge wall of text when executing sudo python setup.py install.

But the last few lines are:

...
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccNKvQpP.out (No such file or directory)
error: command 'gcc' failed with exit status 1

I've googled, but none of the results are working.

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

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

发布评论

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

评论(1

深海里的那抹蓝 2024-09-10 17:24:12

如果您还没有安装 Fink 包管理器,这是一个好主意:您有一个单点访问许多开源包;它们已被配置为精确适应 Mac OS X。

安装 Fink 后,一个简单的

fink install pil

操作就可以了。

如果您希望安装 Fink 中没有的任何软件包,请确保 遵循他们的建议应定义哪些环境变量。这样,您就可以在编译某些软件包等的更新版本时遇到更少的麻烦,以防您需要它们。

It is a good idea to install the Fink package manager, if you have not yet done so: you have a single point entry to many open-source packages; they have been configured to as to be precisely adapted to Mac OS X.

Once you have installed Fink, a simple

fink install pil

will do.

If there is any package not in Fink that you wish to install, make sure to follow their advice on what environment variables should be defined. This way, you'll have less trouble compiling more recent versions of some packages, etc., in case you need them.

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