:下载python
https://www.python.org/ftp/python/2.7.11/python-2.7.11.amd64.msi
:添加以下路径进入Path
D:\Develop\Python27;D:\Develop\Python27\Scripts
:下载Microsoft Visual C++ Compiler for Python 2.7(安装其后,可以直接用pip install scikit_learn方式安装,无需下载whl文件)
https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi
python3.4的解释
http://stackoverflow.com/questions/29909330/microsoft-visual-c-compiler-for-python-3-4
:直接编译安装(还是出错)
pip install numpy
pip install scipy
pip install matplotlib
pip install scikit-learn
pip install pandas
Anaconda或winpython
最后直接安装:
https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda2-2.5.0-Windows-x86_64.exe
--------------------------------使用以下包安装,最后scikit-learn因为不兼容不能使用--------------------------------------------------------------------------
:下载安装numpy
http://www.lfd.uci.edu/~gohlke/pythonlibs/djcobkfp/numpy-1.10.4+vanilla-cp27-none-win_amd64.whl
pip install "numpy-1.10.4+vanilla-cp27-none-win_amd64.whl“
:下载安装scipy
http://www.lfd.uci.edu/~gohlke/pythonlibs/djcobkfp/scipy-0.17.0-cp27-none-win_amd64.whl
pip install scipy-0.17.0-cp27-none-win_amd64.whl
:下载安装matplotlib
http://www.lfd.uci.edu/~gohlke/pythonlibs/djcobkfp/matplotlib-1.5.1-cp27-none-win_amd64.whl
pip install matplotlib-1.5.1-cp27-none-win_amd64.whl
:安装其他
安装scikit lean失败,其需要numpy+mkl(本机不支持),下载
http://www.lfd.uci.edu/~gohlke/pythonlibs/djcobkfp/scikit_learn-0.17.1-cp27-cp27m-win_amd64.whl
http://www.lfd.uci.edu/~gohlke/pythonlibs/djcobkfp/pandas-0.17.1-cp27-none-win_amd64.whl
:安装notebook
pip install jupyter
jupyter notebook
http://localhost:8888/tree
:错误处理
ImportError: DLL load failed: 找不到指定的模块(版本不兼容 or 少了lipython)
pip uninstall scikit-learn
pip uninstall numpy
pip uninstall scipy
pip uninstall matplotlib
pip uninstall pandas