저는 Rasbpian에서 Linux를 실행하고 Python 3.7.3을 사용하고 있습니다. 나는 성공하지 못한 채 며칠 동안 scipy를 설치하려고 노력해 왔습니다.
나는 pip, pip3, apt-get 등을 시도했습니다. numpy를 제거하고 다시 설치해 보았지만 소용이 없었습니다.
다음 오류가 발생합니다.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-fc2cutln/scipy/setup.py", line 540, in <module>
setup_package()
File "/tmp/pip-install-fc2cutln/scipy/setup.py", line 516, in setup_package
from numpy.distutils.core import setup
File "/tmp/pip-build-env-x0_6h9tn/lib/python3.7/site-packages/numpy/__init__.py", line 142, in <module>
from . import add_newdocs
File "/tmp/pip-build-env-x0_6h9tn/lib/python3.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "/tmp/pip-build-env-x0_6h9tn/lib/python3.7/site-packages/numpy/lib/__init__.py", line 8, in <module>
from .type_check import *
File "/tmp/pip-build-env-x0_6h9tn/lib/python3.7/site-packages/numpy/lib/type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "/tmp/pip-build-env-x0_6h9tn/lib/python3.7/site-packages/numpy/core/__init__.py", line 26, in <module>
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.
Original error was: libf77blas.so.3: cannot open shared object file: No such file or directory
답변1
libatlas의 개발 라이브러리만 설치하면 됩니다:
sudo apt install libatlas-base-dev
그런 다음 다시 시도해 보세요.
pip install scipy