Re: [問題] matplotlib.pyplot.show() 沒有東西
前文吃光
→
06/04 14:47,
06/04 14:47
→
06/04 14:48,
06/04 14:48
→
06/04 21:17,
06/04 21:17
→
06/05 11:49,
06/05 11:49
我用ubuntu 10.04
灌matplotlib發現沒灌numpy
灌numpy用網路下載1.6.2的tar.gz
sudo python setup.py install
雖然紅字一堆 但可以裝完 就沒理它
然後灌matplotlib用
sudo easy_install -m matplotlib (若沒easy_install也要先裝)
可是裝完他最後它跟我說
Because this distribution was installed --multi-version, before you can
import modules from this package in an application, you will need to
'import pkg_resources' and then use a 'require()' call similar to one of
these examples, in order to select the desired version:
pkg_resources.require("matplotlib") # latest installed version
pkg_resources.require("matplotlib==1.1.0") # this exact version
pkg_resources.require("matplotlib>=1.1.0") # this version or higher
所以我把程式碼改成如下圖所示 結果也可以跑如下圖所示
https://dl.dropbox.com/u/24628527/ubuntu_matplotlib_test.PNG
以上
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.63.202
推
06/12 12:57, , 1F
06/12 12:57, 1F
→
06/12 12:58, , 2F
06/12 12:58, 2F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
Python 近期熱門文章
PTT數位生活區 即時熱門文章