ubuntu下安装pandas出现 compile failed with error code 1 in /tmp/pip_build_hadoop/pandas

2023-02-12,,,,

都是用pip装的,是不是应该用apt-get 装的呀

ubuntu下安装pandas

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

查了一个下午都是好多红框框

    Python2和Python3版本冲突

    pip版本问题

    pip -V

    更新

    sudo apt-get update

    sudo apt-get install python-dev

    最后不知道是怎样安装上了,感觉是以下两个办法之一

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

(刚开始试了也不行,不知道为啥突然神奇的可以了。如果一遍不行,就运行两边,看到有个答案是说运行两边,具体原因没仔细了解)

安装Matplotlib出错

    要先安装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

ubuntu下安装pandas出现 compile failed with error code 1 in /tmp/pip_build_hadoop/pandas的相关教程结束。

《ubuntu下安装pandas出现 compile failed with error code 1 in /tmp/pip_build_hadoop/pandas.doc》

下载本文的Word格式文档,以方便收藏与打印。