如何安装scikit-learn
2017-05-06 · 互联网+时代高效组织信息化平台
关注
展开全部
首先,windows7 32位的系统。
首先安装python2.7,官网下载的,安装路径是c:\python2.7
因为之前虽然安装的不完整,但是我已经配置好环境变量等参数了。具体Path添加 C:\Python27;C:\Python27\Scripts,而PYTHONPATH添加C:\Python27;C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk;了这些。
然后安装setuptools,下载的是setuptools-0.6c11.win32-py2.7.exe
运行后,在控制台看一下是否安装成功,
easy_install
virtualenv
出现以下类似消息:
Searching
for virtualenv
Best match: virtualenv 1.7.2
Processing virtualenv-1.7.2-py2.7.egg
virtualenv 1.7.2 is already the active version in easy-install.pth
Installing virtualenv-script.py script to D:\Program Files\Python2.7\Scripts
Installing virtualenv.exe script to D:\Program Files\Python2.7\Scripts
Installing virtualenv.exe.manifest script to D:\Program Files\Python2.7\Scripts
Installing virtualenv-2.7-script.py script to D:\Program Files\Python2.7\Scripts
Installing
virtualenv-2.7.exe script to D:\Program Files\Python2.7\Scripts
Installing virtualenv-2.7.exe.manifest script to D:\Program Files\Python2.7\Scri
pts
Using d:\program files\python2.7\lib\site-packages\virtualenv-1.7.2-py2.7.egg
Processing dependencies for virtualenv
Finished processing dependencies for virtualenv
安装numpy
easy_install
numpy
等等其它的依赖包,基本上都是这么装的,即
easy_install libname
网上很多人说安装matplotlib时出现依赖包,我这里下载时,我看到的消息是自动下载和安装的,所以之前下载的包都没有用到。还是很好的。
所以我就安装了numpy,scipy,matplotlib 然后就是
easy_install scikit-learn
首先安装python2.7,官网下载的,安装路径是c:\python2.7
因为之前虽然安装的不完整,但是我已经配置好环境变量等参数了。具体Path添加 C:\Python27;C:\Python27\Scripts,而PYTHONPATH添加C:\Python27;C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk;了这些。
然后安装setuptools,下载的是setuptools-0.6c11.win32-py2.7.exe
运行后,在控制台看一下是否安装成功,
easy_install
virtualenv
出现以下类似消息:
Searching
for virtualenv
Best match: virtualenv 1.7.2
Processing virtualenv-1.7.2-py2.7.egg
virtualenv 1.7.2 is already the active version in easy-install.pth
Installing virtualenv-script.py script to D:\Program Files\Python2.7\Scripts
Installing virtualenv.exe script to D:\Program Files\Python2.7\Scripts
Installing virtualenv.exe.manifest script to D:\Program Files\Python2.7\Scripts
Installing virtualenv-2.7-script.py script to D:\Program Files\Python2.7\Scripts
Installing
virtualenv-2.7.exe script to D:\Program Files\Python2.7\Scripts
Installing virtualenv-2.7.exe.manifest script to D:\Program Files\Python2.7\Scri
pts
Using d:\program files\python2.7\lib\site-packages\virtualenv-1.7.2-py2.7.egg
Processing dependencies for virtualenv
Finished processing dependencies for virtualenv
安装numpy
easy_install
numpy
等等其它的依赖包,基本上都是这么装的,即
easy_install libname
网上很多人说安装matplotlib时出现依赖包,我这里下载时,我看到的消息是自动下载和安装的,所以之前下载的包都没有用到。还是很好的。
所以我就安装了numpy,scipy,matplotlib 然后就是
easy_install scikit-learn
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |