Ubuntu 14.04上安装pip3/numpy/matplotlib/scipy操作步骤
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu 14.04上安装pip3/numpy/matplotlib/scipy操作步骤
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Ubuntu 14.04 64位上默認(rèn)安裝了兩個版本的python,一個是python2.7.6,另外一個是python3.4.0,如下圖所示:
安裝完pip3的結(jié)果如下圖所示:
升級完pip3的結(jié)果如下圖所示:
安裝完numpy的結(jié)果如下圖所示:
通過sudo pip3 install matplotlib安裝matplotlib時(shí)會出現(xiàn)six相關(guān)的錯誤,如下圖所示,這里直接通過sudo apt-get install python3-matplotlib安裝matplotlib正常:
通過sudo apt-get install python3-scipy安裝SciPy。
以上用到的suyo所有命令如下:
sudo apt-get update
sudo apt-get install python3-pip # 安裝pip3,若安裝支持python2的pip,則執(zhí)行 sudo apt-get install pip
sudo pip3 install --upgrade pip # 升級pip3
sudo pip3 install numpy # 安裝numpy
sudo apt-get install python3-matplotlib # 安裝matplotlib
sudo apt-get install python3-scipy # 安裝scipy
可以從GitHub的 https://github.com/fengbingchun/Python_Test?下載相關(guān)Python測試代碼用來驗(yàn)證Numpy,Matplotlib,SciPy是否安裝正確,測試代碼可以在widnows和linux運(yùn)行。
GitHub: https://github.com/fengbingchun/Python_Test?
總結(jié)
以上是生活随笔為你收集整理的Ubuntu 14.04上安装pip3/numpy/matplotlib/scipy操作步骤的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux下的内存对齐函数
- 下一篇: Ubuntu14.04 64位机上配置O