在linux安装scipy出现Installing build dependencies
时间: 2024-01-15 18:05:37 浏览: 158
linux系统下python-scipy的安装文件
如果在Linux上安装Scipy时遇到了“Installing build dependencies”问题,可能是因为您缺少一些必要的构建依赖项。可以通过以下命令安装这些依赖项:
Ubuntu/Debian:
```
sudo apt-get install build-essential python-dev python-setuptools python-numpy python-scipy libatlas-dev libatlas3gf-base
```
Fedora:
```
sudo dnf install gcc gcc-c++ python-devel atlas atlas-devel lapack-devel blas-devel
```
CentOS/RHEL:
```
sudo yum install gcc gcc-c++ python-devel atlas atlas-devel lapack-devel blas-devel
```
安装完依赖后再次尝试安装Scipy应该就不会出现此问题了。
阅读全文