PIL for Windows for Python 2.4 [英] PIL for Windows for Python 2.4

查看:85
本文介绍了PIL for Windows for Python 2.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于没有Python 2.4的版本,我试图把它放在一起

来自源代码。运行


setup.py build


给出了这个错误:


回溯(最近一次通话)最后):

文件C:\ tmp \ PIL \ Imaging-1.1.4 \setup.py,第60行,在?

for open in line(os.path.join(" libImaging",

" ImConfig.h"))。readlines():

IOError:[Errno 2]没有这样的文件或目录:''libImaging\\ImConfig.h''

看起来是两个反斜杠。


任何人都可以给我解决这个问题的线索?


Scott

解决方案

Scott F写道:

由于没有Python 2.4的版本,我试图从源代码将它组合在一起。运行

setup.py build

给出了这个错误:

Traceback(最近一次调用最后一次):
文件C: \ ttmp\PIL \Imaging-1.1.4 \setup.py",第60行,在?
中打开行(os.path.join(" libImaging",
) ; ImConfig.h"))。readlines():
IOError:[Errno 2]没有这样的文件或目录:''libImaging\\ImConfig.h''

似乎放入两个反斜杠。




实际上,你只是看到了文件名的repr()。

你真的失踪了那个文件在它看起来好的地方。注意这里最后两个错误的相似性:

open(''test / this'')
Traceback(最近一次调用最后一次):

文件"< stdin>",第1行,在?

IOError:[Errno 2]没有这样的文件或目录:''test / this''open(''test \\this'')
Traceback(最近一次调用最后一次):

文件"< stdin> ",第1行,在?

IOError:[Errno 2]没有这样的文件或目录:''test \\this''open(r''test\this'')



回溯(最近一次调用最后一次):

文件"< stdin>",第1行,in ?

IOError:[Errno 2]没有这样的文件或目录:''test \\this''

-Peter


Peter Hansen< pe *** @ engcorp.com>写在

新闻:cp ********** @ utornnr1pp.grouptelecom.net:

实际上,你只是看到了文件名的repr()。
你真的错过了那个文件所在的地方。

-Peter



给男人一杯啤酒!谢谢。我有ImConfig.h.win,所以我改变了

setup.py到我们去了。


Scott


所以你为Windows构建了PIL,Python 2.4?


有没有机会分享它?什么编译器你配置了distutils

来使用?


问候,


Fuzzyman


As there is no build for Python 2.4, I attempted to put it together
from source. Running

setup.py build

gives this error:

Traceback (most recent call last):
File "C:\tmp\PIL\Imaging-1.1.4\setup.py", line 60, in ?
for line in open(os.path.join("libImaging",
"ImConfig.h")).readlines():
IOError: [Errno 2] No such file or directory: ''libImaging\\ImConfig.h''
Appears to be putting in two backslashes.

Can anyone give me a clue to fix this?

Scott

解决方案

Scott F wrote:

As there is no build for Python 2.4, I attempted to put it together
from source. Running

setup.py build

gives this error:

Traceback (most recent call last):
File "C:\tmp\PIL\Imaging-1.1.4\setup.py", line 60, in ?
for line in open(os.path.join("libImaging",
"ImConfig.h")).readlines():
IOError: [Errno 2] No such file or directory: ''libImaging\\ImConfig.h''

Appears to be putting in two backslashes.



Actually, you''re just seeing the repr() of the filename.
You really are missing that file in the place where it''s
looking. Note the similarity in the last two errors here:

open(''test/this'') Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno 2] No such file or directory: ''test/this'' open(''test\\this'') Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno 2] No such file or directory: ''test\\this'' open(r''test\this'')


Traceback (most recent call last):
File "<stdin>", line 1, in ?
IOError: [Errno 2] No such file or directory: ''test\\this''
-Peter


Peter Hansen <pe***@engcorp.com> wrote in
news:cp**********@utornnr1pp.grouptelecom.net:

Actually, you''re just seeing the repr() of the filename.
You really are missing that file in the place where it''s
looking.

-Peter


Give the man a beer! Thanks. I had ImConfig.h.win so I changed
setup.py to that and off we go.

Scott


So you''ve built PIL for windows, Python 2.4 ?

Any chance of sharing it ? What compiler have you configured distutils
to use ?

Regards,

Fuzzyman


这篇关于PIL for Windows for Python 2.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆