【python】win7-64位安装python

:下载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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值