我在Python 3.5中安装了numpy,scipy和scikit-learn。当我运行我的程序时,我收到此错误。
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.
答案 0 :(得分:6)
在搜索并重新安装几乎所有东西之后,我也遇到了同样的问题。我找到了答案:
第1步:卸载scipy和numpy
第2步:下载numpy + mkl(软件包名称为numpy + mkl,而不是numpy软件包和mkl软件包)和scipy来自this page as armatita提到
步骤3:首先安装numpy + mkl,然后安装scipy
祝你好运
答案 1 :(得分:2)
实际上需要$(function() {
$(".trigger").click(function(){
$( "#datepicker" ).datepicker({});
$("#datepicker").datepicker("show"); });
});
$("#datepicker").datepicker({
onSelect: function(dateText, inst) {
//dateText comes in as MM/DD/YY
var datePieces = dateText.split('/');
var month = datePieces[0];
var day = datePieces[1];
var year = datePieces[2];
//define select option values for
//corresponding element
$('select#month').val(month);
$('select#day').val(day);
$('select#year').val(year); }});
+ numpy
。但很难说这是否是你的发行版的问题。
我的建议是您使用已经带来这些库的可用发行版之一。我推荐WinPython,但我也听说过有关Anaconda的好消息。
使用WinPython安装其他软件包很容易:
Unofficial Windows Binaries for Python Extension Packages
如果您真的想要解决当前发行版的问题,则必须提供更多信息,例如您安装的版本,以前安装的模块以及安装方式。
答案 2 :(得分:1)
尝试Anaconda,它将解决您的问题。
答案 3 :(得分:0)
卸载并重新安装numpy和scipy,这为我解决了问题。