作者Arton0306 (Ar藤)
看板Python
標題Re: [問題] 用python畫圖
時間Sat Nov 22 10:14:49 2008
小弟在使用pycairo的時候發生問題
下面是執行所附的example檔所發生的問題
Traceback (most recent call last):
File "D:\My research\Tools\pycairo-1.4.12\examples\hering.py", line 7, in
<module>
import cairo
File "C:\Python25\Lib\site-packages\cairo\__init__.py", line 1, in <module>
from _cairo import *
ImportError: DLL load failed: 找不到指定的模組。
不知是什麼原因
而我安裝pycairo是用
http://ftp.gnome.org/pub/gnome/binaries/win32/pycairo/1.4/
這裡的win32執行檔自動安裝
因為pycairo的官網似乎只有寫linux的安裝方式
安裝時 會出現三個錯誤視窗
http://140.114.88.97/arton/1.png
http://140.114.88.97/arton/2.png
http://140.114.88.97/arton/3.png
看不出是什麼意思
不知是否為這個引起的
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.114.229.83
※ 編輯: Arton0306 來自: 140.114.229.83 (11/22 10:15)
→ Arton0306:冏 可否給點提示 要往哪方面去查呢@@ 11/22 22:03
→ Arton0306:似乎不是安裝的問題 因為灌其它的也會這樣 但其它的能用 11/22 22:16
找到了
You want "cairo-1.4.8.zip", the binary distribution at "libpng 1.2.8", and
"Zlib 1.2.3" (you can search on those strings to find them in the page). That
should be it. Just pop libcairo-2.dll, libpng13.dll and zlib1.dll into your
working directory or system PATH, and away you go!
原來這裡還要把一些dll放進來
※ 編輯: Arton0306 來自: 140.114.229.83 (11/22 22:30)