歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> Ubuntu下安裝numpy and matplotlib

Ubuntu下安裝numpy and matplotlib

日期:2017/3/1 14:40:53   编辑:關於Linux
Ubuntu下安裝numpy and matplotlib 安裝numpy相對簡單,以下命令可以完成 apt-get install python-numpy apt-get install python-scipy 安裝matplotlib相對復雜一些 需要先安裝其依賴的包libpng和freetype 安裝libpng: sudo apt-get install libpng-dev 安裝freetype: cd ~/Downloads wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.10.tar.gz tar zxvf freetype-2.4.10.tar.gz cd freetype-2.4.10/ ./congfigure make sudo make install 安裝pip,然後通過pip來安裝matplotlib: sudo apt-get install python-pip 安裝好pip後就可以用下面的命令來查找matplotlib和查看其安裝狀態 sudo pip search matplotlib 安裝matplotlib sudo pip install matplotlib
Copyright © Linux教程網 All Rights Reserved