有些困惑,因为安装了scipy
软件包,但仍然得到
from sklearn.model_selection import train_test_split
File "/home/jct/gpu_ready/lib/python3.6/site-packages/sklearn/__init__.py", line 76, in <module>
from .base import clone
File "/home/jct/gpu_ready/lib/python3.6/site-packages/sklearn/base.py", line 16, in <module>
from .utils import _IS_32BIT
File "/home/jct/gpu_ready/lib/python3.6/site-packages/sklearn/utils/__init__.py", line 20, in <module>
from .validation import (as_float_array,
File "/home/jct/gpu_ready/lib/python3.6/site-packages/sklearn/utils/validation.py", line 21, in <module>
from .fixes import _object_dtype_isnan
File "/home/jct/gpu_ready/lib/python3.6/site-packages/sklearn/utils/fixes.py", line 18, in <module>
from scipy.sparse.linalg import lsqr as sparse_lsqr # noqa
File "/home/jct/gpu_ready/lib/python3.6/site-packages/scipy/sparse/linalg/__init__.py", line 113, in <module>
from .isolve import *
File "/home/jct/gpu_ready/lib/python3.6/site-packages/scipy/sparse/linalg/isolve/__init__.py", line 8, in <module>
from .lgmres import lgmres
File "/home/jct/gpu_ready/lib/python3.6/site-packages/scipy/sparse/linalg/isolve/lgmres.py", line 10, in <module>
from scipy.linalg import get_blas_funcs, get_lapack_funcs
ModuleNotFoundError: No module named 'scipy.linalg'
也
$ pip3 show scipy
Name: scipy
Version: 1.4.1
Summary: SciPy: Scientific Library for Python
Home-page: https://www.scipy.org
Author: None
Author-email: None
License: BSD
Location: /home/jct/gpu_ready/lib/python3.6/site-packages
Requires: numpy