Sklearn import error

Asked 1 years ago, Updated 1 years ago, 109 views

Hello, I get the following error every time I import sklearn, but I have no idea how to solve it.

ImportError: DLL load failed: The specified procedure was not found.

I think it's a DLL problem, but is it a different error that says 'The specified procedure cannot be found' rather than 'the specified module cannot be found'?

Attached is the code you executed and the detailed error message. I've been trying everything I can by googling since yesterday, but it's not working outPlease answer those who have experienced similar errors!

Code from sklearn.feature_extraction.text import CountVectorizer

ImportError Traceback (most recent call last) in () ----> 1 from sklearn.feature_extraction.text import CountVectorizer 2 3 vect = CountVectorizer() 4 vect.fit(corpus) 5 vect.vocabulary_

C:\Anaconda\lib\site-packages\sklearn_init_.py in () 132 else: 133 from . import __check_build --> 134 from .base import clone 135 __check_build # avoid flakes unused variable error 136

C:\Anaconda\lib\site-packages\sklearn\base.py in () 11 from scipy import sparse 12 from .externals import six ---> 13 from .utils.fixes import signature 14 from . import version 15

C:\Anaconda\lib\site-packages\sklearn\utils_init_.py in () 8 9 from .murmurhash import murmurhash3_32 ---> 10 from .validation import (as_float_array, 11 assert_all_finite, 12 check_random_state, column_or_1d, check_array,

C:\Anaconda\lib\site-packages\sklearn\utils\validation.py in () 16 17 from ..externals import six ---> 18 from ..utils.fixes import signature 19 from .. import get_config as _get_config 20 from ..exceptions import NonBLASDotWarning

C:\Anaconda\lib\site-packages\sklearn\utils\fixes.py in () 142 from ._scipy_sparse_lsqr_backport import lsqr as sparse_lsqr 143 else: --> 144 from scipy.sparse.linalg import lsqr as sparse_lsqr # noqa 145 146

C:\Anaconda\lib\site-packages\scipy\sparse\linalg_init_.py in () 116 from .interface import * 117 from .eigen import * --> 118 from .matfuncs import * 119 from ._onenormest import * 120 from ._norm import *

C:\Anaconda\lib\site-packages\scipy\sparse\linalg\matfuncs.py in () 17 import numpy as np 18 ---> 19 import scipy.special 20 from scipy.linalg.basic import solve, solve_triangular 21

C:\Anaconda\lib\site-packages\scipy\special_init_.py in () 638 from .sf_error import SpecialFunctionWarning, SpecialFunctionError 639 --> 640 from ._ufuncs import * 641 642 from .basic import *

ImportError: DLL load failed: The specified procedure was not found.

import-에러

2022-09-21 18:00

1 Answers

Library not found on extension module....

If you are a Python user, I recommend Linux rather than Windows.

For Linux, most of the above problems can be solved by a combination of package management tools (apt-get, dnf, yast, etc.) and pip, but for Windows, you may need to sell your product.

If you use Windows 10, install bash and use Linux. The development environment is convenient to use the jupyter


2022-09-21 18:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.