본문 바로가기

카테고리 없음

ImportError: cannot import name 'imresize' from 'scipy.misc' 해결

from scipy.misc import imresize
ImportError: cannot import name 'imresize' from 'scipy.misc'

위와 같은 에러 발생 시 기존 scipy를 삭제하고 1.1.0 버전으로 재설치 

-- > pip uninstall scipy

-- > pip install scipy==1.1.0

raise NotFoundError('no lapack/blas resources found')
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

 

그래도 위와 같은 에러가 발생한다면

-- > sudo apt-get install gfortran libopenblas-dev liblapack-dev

-- > pip install scipy==1.1.0

 

Building wheel for scipy (setup.py) ... done

요 상태에서 엄청~ 오래 걸리니까 잘 설치되고 있구나 믿고 기다리면

 

Building wheels for collected packages: scipy
  Building wheel for scipy (setup.py) ... done
  Created wheel for scipy: filename=scipy-1.1.0-cp38-cp38-linux_x86_64.whl size=55878695 sha256=867c461b2c3df54d35c7577a02863b160287587bafc6fb1afe973bbcc80166a9
Installing collected packages: scipy

 

정상적으로 설치 완료!