我遇到了导入sklearn的问题。在
我已经通过pip安装了这个包,但是python不能导入这个库。我在Windows10环境中使用Python2.7。在from sklearn.tree import DecisionTreeClassifier, export_graphviz
我得到的错误是:
^{pr2}$
我读过有人通过安装SciPy(SciPy-0.19.1)找到解决方案。焦油gz)但是当我尝试通过pip安装时,提示符会返回以下消息:C:\Python27\Scripts>pip install scipy
Collecting scipy
Using cached scipy-0.19.1.tar.gz
Installing collected packages: scipy
Running setup.py install for scipy ... error
Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\filipp~1\\appdata\\local\\temp\\pip-build-mhb0vd\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\filipp~1\appdata\local\temp\pip-jsdbd3-record\install-record.txt --s