1. 程式人生 > >win7 64安裝python2.7.11 和 scikit-learn

win7 64安裝python2.7.11 和 scikit-learn

ImportError: No module named sklearn 未安裝sklearn包
ImportError: DLL load failed: 找不到指定的模組
ImportError: DLL load failed: The specified module could not be found
Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat
Numpy Install RuntimeError: Broken toolchain: cannot link a simple C program
ImportError: numpy.core.multiarray failed to import
ImportError: cannot import name __check_build
ImportError: No module named matplotlib.pyplot
一. 安裝過程–

-安裝順序和版本的重要性****

使用”pip install scikit-learn”命令安裝的Scikit-Learn程式,並沒有注意需要安裝Numpy、Scipy、Matlotlib,安裝順序很重要!!!
出現錯誤:
ImportError: DLL load failed: 找不到指定的模組”
解決方法是:
重點:安裝python第三方庫時總會出現各種相容問題,應該是版本問題,版本需要一致。

第一步:解除安裝原始版本,包括Numpy、Scipy、Matlotlib、Scikit-Learn
pip uninstall scikit-learn
pip uninstall numpy
pip uninstall scipy
pip uninstall matplotlib