Linux环境下numpy,scipy,matplotlib的安装

转载自:https://blog.csdn.net/Dora_Bin/article/details/50879130

有两种方式可以安装这些包: 
sudo apt-get install python-numpy 和 sudo pip install numpy 
后者会装到比较新的版本,而前者会比较旧。 
有一句话是这么说的,apt-get之于Debian就如pip之于Python。

执行下面的命令: 
sudo pip install numpy 
sudo apt-get install libatlas-base-dev gfortran //这一步是后面安装scipy所必需的 
sudo pip install scipy 
sudo pip install matplotlib 
如果提示你没有安装pip,可执行 sudo apt-get install python-pip进行安装 
如果出错,可以试着执行sudo apt-get install build-essential python-dev

猜你喜欢

转载自blog.csdn.net/qian2213762498/article/details/80660355