版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiangcheng001/article/details/53994870
某些情况下,Linux会缺少scipy的一些基础包,如lapack/blas等。网上搜到的一下教程颇为麻烦,在折腾一番之后,找到简易命令行。
只需要几个命令即可完成:
sudo apt-get install libblas-dev
sudo apt-get install liblapack-dev
sudo apt-get install gfortran
sudo apt-get install python-scipy
轻松搞定。
On Fedora, this works:
yum install lapack lapack-devel blas blas-devel
pip install numpy
pip install scipy
Remember to install 'lapack-devel' and 'blas-devel' in addition to 'blas' and 'lapack' otherwise you'll get the error you mentioned or the the "numpy.distutils.system_info.LapackNotFoundError" error.
不知为何非要6.1.1的,redhat上。
sudo easy_install pip==6.1.1
--------------------- 作者:lcwy220 来源:CSDN 原文:https://blog.csdn.net/xiangcheng001/article/details/53994870?utm_source=copy 版权声明:本文为博主原创文章,转载请附上博文链接!
module ‘scipy.misc’ has no attribute ‘imresize’
解决办法:
pip3 install Pillow
重启就可以了