I installed numpy, scipy and scikit-learn in Python 3.5. When I run my program, I get this error.
Traceback (most recent call last):
File "D:/Dropbox/Cong Toan/Tools/NLP_Tools/doc_sim.py", line 1, in <module>
from sklearn.feature_extraction.text import TfidfVectorizer
File "C:\Python35-32\lib\site-packages\sklearn\__init__.py", line 57, in <module>
from .base import clone
File "C:\Python35-32\lib\site-packages\sklearn\base.py", line 11, in <module>
from .utils.fixes import signature
File "C:\Python35-32\lib\site-packages\sklearn\utils\__init__.py", line 11, in <module>
from .validation import (as_float_array,
File "C:\Python35-32\lib\site-packages\sklearn\utils\validation.py", line 16, in <module>
from ..utils.fixes import signature
File "C:\Python35-32\lib\site-packages\sklearn\utils\fixes.py", line 324, in <module>
from scipy.sparse.linalg import lsqr as sparse_lsqr
File "C:\Python35-32\lib\site-packages\scipy\sparse\linalg\__init__.py", line 112, in <module>
from .isolve import *
File "C:\Python35-32\lib\site-packages\scipy\sparse\linalg\isolve\__init__.py", line 6, in <module>
from .iterative import *
File "C:\Python35-32\lib\site-packages\scipy\sparse\linalg\isolve\iterative.py", line 7, in <module>
from . import _iterative
ImportError: DLL load failed: The specified module could not be found.
It actually requires numpy
+mkl
. But it's difficult to say if that is the problem with your distribution.
My advice is that you use one of the available distributions that already bring those libraries. I recommend WinPython, but I also heard good things about Anaconda.
It's easy to install other packages with WinPython using:
Unofficial Windows Binaries for Python Extension Packages
By Christoph Gohlke.
If you really want to solve that issue with your current distribution you'll have to provide more information such as versions that you installed, previous modules installed, and how you installed them.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments