Re: [問題] 用python畫圖
小弟在使用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



看不出是什麼意思
不知是否為這個引起的
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.114.229.83
※ 編輯: Arton0306 來自: 140.114.229.83 (11/22 10:15)
→
11/22 22:03, , 1F
11/22 22:03, 1F
→
11/22 22:16, , 2F
11/22 22:16, 2F
找到了
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)
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):
3
8
Python 近期熱門文章
PTT數位生活區 即時熱門文章