ubuntu下安裝pandas出現 compile failed with error code 1 in /tmp/pip_build_hadoop/pandas


都是用pip裝的,是不是應該用apt-get 裝的呀

ubuntu下安裝pandas

(出現 compile failed with error code 1 in /tmp/pip_build_hadoop/pandas)

查了一個下午都是好多紅框框

  1. Python2和Python3版本沖突

  2. pip版本問題
    pip -V

  3. 更新
    sudo apt-get update

  4. sudo apt-get install python-dev

  5. 最后不知道是怎樣安裝上了,感覺是以下兩個辦法之一

     ``` 
         sudo easy_install -U setuptools          
         sudo pip install --upgrade setuptools 
     ```
    

(剛開始試了也不行,不知道為啥突然神奇的可以了。如果一遍不行,就運行兩邊,看到有個答案是說運行兩邊,具體原因沒仔細了解)

安裝Matplotlib出錯

  1. 要先安裝nose庫或者python3-tk

    sudo apt-get install python3-tk
    sudo pip install nose
    

安裝scipy出錯

(compile failed with error code 1 in /tmp/pip_build_root/scipy)

應該是這些依賴項的問題,所以安裝了這些直接顯示已經滿足了??

sudo apt-get install libblas-dev liblapack-dev gfortran  python-scipy


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM