我的平臺:在Ubuntu上安裝matplotlib:ImportError
Ubuntu 13.04,Python 2.7.4。
安裝matplotlib失敗,導入錯誤:沒有模塊名爲pyplot。
我已經嘗試了很多方法,如
$ sudo apt-get install python-matplotlib
,易於安裝,從源代碼安裝......,我folllowing http://matplotlib.org/faq/installing_faq.html
但他們沒有工作,這導入錯誤總是發生,任何人可以幫助?
編輯的追溯:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-4-82be63b7783c> in <module>()
----> 1 import matplotlib
/home/wuhuijia/matplotlib.py in <module>()
1 import numpy as np
----> 2 import matplotlib.pyplot as plt
3 import scipy.optimize as so
4
5 def find_confidence_interval(x, pdf, confidence_level):
ImportError: No module named pyplot
您能向我們展示導入錯誤的痕跡嗎? – tacaswell