1. ホーム
  2. Python

ImportError: scipy'という名前のモジュールがありません。

2022-02-12 05:49:53
<パス

質問です。

Traceback (most recent call last):
  File "/home/as/.pyenv/versions/3.4.2/bin/face_recognition", line 7, in 

    from face_recognition.cli import main
  File "/home/as/.pyenv/versions/3.4.2/lib/python3.4/site-packages/face_recognition/__init__.py", line 7, in 

    from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance
  File "/home/as/.pyenv/versions/3.4.2/lib/python3.4/site-packages/face_recognition/api.py", line 3, in 

    import scipy.misc
ImportError: No module named 'scipy'

解決策

pip install -U scipy