Здравствуйте!
Начал изучение Data science и при импорте из sklearn.linear_model LinearRegression получаю ошибку
ImportError: DLL load failed while importing _arpack: Не найдена указанная процедура. Полный код ошибки ниже, такая же ситуация при импорте MLPRegressor
ОС Win10
python 3.8.6
Начал изучение Data science и при импорте из sklearn.linear_model LinearRegression получаю ошибку
ImportError: DLL load failed while importing _arpack: Не найдена указанная процедура. Полный код ошибки ниже, такая же ситуация при импорте MLPRegressor
ОС Win10
python 3.8.6
Python:
ImportError Traceback (most recent call last)
<ipython-input-1-a35af2a4e137> in <module>
----> 1 from sklearn.linear_model import LinearRegression
C:\ProgramData\Anaconda3\lib\site-packages\sklearn\__init__.py in <module>
78 from . import _distributor_init # noqa: F401
79 from . import __check_build # noqa: F401
---> 80 from .base import clone
81 from .utils._show_versions import show_versions
82
C:\ProgramData\Anaconda3\lib\site-packages\sklearn\base.py in <module>
19 from . import __version__
20 from ._config import get_config
---> 21 from .utils import _IS_32BIT
22 from .utils.validation import check_X_y
23 from .utils.validation import check_array
C:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\__init__.py in <module>
21
22 from .murmurhash import murmurhash3_32
---> 23 from .class_weight import compute_class_weight, compute_sample_weight
24 from . import _joblib
25 from ..exceptions import DataConversionWarning
C:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\class_weight.py in <module>
5 import numpy as np
6
----> 7 from .validation import _deprecate_positional_args
8
9
C:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\validation.py in <module>
23 from contextlib import suppress
24
---> 25 from .fixes import _object_dtype_isnan, parse_version
26 from .. import get_config as _get_config
27 from ..exceptions import NonBLASDotWarning, PositiveSpectrumWarning
C:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\fixes.py in <module>
16 import scipy.sparse as sp
17 import scipy
---> 18 import scipy.stats
19 from scipy.sparse.linalg import lsqr as sparse_lsqr # noqa
20 from numpy.ma import MaskedArray as _MaskedArray # TODO: remove in 0.25
C:\ProgramData\Anaconda3\lib\site-packages\scipy\stats\__init__.py in <module>
386
387 """
--> 388 from .stats import *
389 from .distributions import *
390 from .morestats import *
C:\ProgramData\Anaconda3\lib\site-packages\scipy\stats\stats.py in <module>
178 import scipy.special as special
179 from scipy import linalg
--> 180 from . import distributions
181 from . import mstats_basic
182 from ._stats_mstats_common import (_find_repeats, linregress, theilslopes,
C:\ProgramData\Anaconda3\lib\site-packages\scipy\stats\distributions.py in <module>
6 # instead of `git blame -Lxxx,+x`.
7 #
----> 8 from ._distn_infrastructure import (entropy, rv_discrete, rv_continuous,
9 rv_frozen)
10
C:\ProgramData\Anaconda3\lib\site-packages\scipy\stats\_distn_infrastructure.py in <module>
21
22 # for root finding for continuous distribution ppf, and max likelihood estimation
---> 23 from scipy import optimize
24
25 # for functions of continuous distributions (e.g. moments, entropy, cdf)
C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\__init__.py in <module>
385 """
386
--> 387 from .optimize import *
388 from ._minimize import *
389 from ._root import *
C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\optimize.py in <module>
34 line_search_wolfe2 as line_search,
35 LineSearchWarning)
---> 36 from ._numdiff import approx_derivative
37 from scipy._lib._util import getfullargspec_no_self as _getfullargspec
38 from scipy._lib._util import MapWrapper
C:\ProgramData\Anaconda3\lib\site-packages\scipy\optimize\_numdiff.py in <module>
4 from numpy.linalg import norm
5
----> 6 from scipy.sparse.linalg import LinearOperator
7 from ..sparse import issparse, csc_matrix, csr_matrix, coo_matrix, find
8 from ._group_columns import group_dense, group_sparse
C:\ProgramData\Anaconda3\lib\site-packages\scipy\sparse\linalg\__init__.py in <module>
112 from .dsolve import *
113 from .interface import *
--> 114 from .eigen import *
115 from .matfuncs import *
116 from ._onenormest import *
C:\ProgramData\Anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\__init__.py in <module>
7
8 """
----> 9 from .arpack import *
10 from .lobpcg import *
11
C:\ProgramData\Anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\__init__.py in <module>
18
19 """
---> 20 from .arpack import *
C:\ProgramData\Anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\arpack.py in <module>
41 __all__ = ['eigs', 'eigsh', 'svds', 'ArpackError', 'ArpackNoConvergence']
42
---> 43 from . import _arpack
44 arpack_int = _arpack.timing.nbx.dtype
45
ImportError: DLL load failed while importing _arpack: Не найдена указанная процедура.