Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I've installed
scipy
and
scikit-learn
from
Christoph Gohlke Unofficial Windows installers
, and the following commands run successfully without error :
>>> import sklearn
>>> import scipy
Then I was going to try sklearn.datasets.load_digits()
function as demonstrated in the linked documentation :
from sklearn.datasets import load_digits
but that line triggered an error complaining about, as I understand it, _log_logistic_sigmoid
was not found :
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from sklearn.datasets import load_digits
File "C:\Python27\lib\site-packages\sklearn\datasets\__init__.py", line 23, in <module>
from .twenty_newsgroups import fetch_20newsgroups
File "C:\Python27\lib\site-packages\sklearn\datasets\twenty_newsgroups.py", line 53, in <module>
from ..feature_extraction.text import CountVectorizer
File "C:\Python27\lib\site-packages\sklearn\feature_extraction\__init__.py", line 10, in <module>
from . import text
File "C:\Python27\lib\site-packages\sklearn\feature_extraction\text.py", line 29, in <module>
from ..preprocessing import normalize
File "C:\Python27\lib\site-packages\sklearn\preprocessing\__init__.py", line 6, in <module>
from .data import Binarizer
File "C:\Python27\lib\site-packages\sklearn\preprocessing\data.py", line 19, in <module>
from ..utils.extmath import row_norms
File "C:\Python27\lib\site-packages\sklearn\utils\extmath.py", line 23, in <module>
from ._logistic_sigmoid import _log_logistic_sigmoid
ImportError: DLL load failed: The specified module could not be found.
Anybody ever experienced this error? How to fix that?
I'm using python 2.7 on windows 8 machine if that help.
Solved by uninstalling the unofficial package, then reinstall from the official package using the following command :
pip install -U numpy scipy scikit-learn
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.