close
如果再iPython下使用Matplotlib發現import Matplotlib的錯誤的時候可以參考以下的解決方法。

基本上是路徑的錯誤, 基本解決方法是修改./bash_profile檔案

vi ~/.bash_profile

加上下面的兩行
export LC_ALL=en_US.UTF-8
export LANG
=en_US.UTF-8



然後重新reload profile


source ~/.bash_profile

然後也同時重新啟動Python, 這時錯誤應該會消失了。希望這個有幫助。
arrow
arrow
    全站熱搜

    曲線軌跡 發表在 痞客邦 留言(0) 人氣()