如何在Anaconda中升级scikit-learn软件包 [英] How to upgrade scikit-learn package in anaconda

查看:138
本文介绍了如何在Anaconda中升级scikit-learn软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将scikit-learn软件包从0.16升级到0.17.为此,我尝试使用此网站上的二进制文件: http://www .lfd.uci.edu/〜gohlke/pythonlibs/#scikit-learn .我有Windows 7 x64位.我在本地下载了相关的软件包,并给出了以下命令,并且需求"已经是最新的:

I am trying to upgrade package of scikit-learn from 0.16 to 0.17. For that I am trying to use binaries from this website: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikit-learn. I have Windows 7 x64 bit. I downloaded the relevant package locally and gave following commands and got Requirement already up-to-date:

C:\Users\skumar>pip install --upgrade --use-wheel --no-index --find-links=../../
SOURCE/APPS scikit-learn
Ignoring indexes: https://pypi.python.org/simple
Requirement already up-to-date: scikit-learn in c:\anaconda3\lib\site-packages

然后我尝试从远程站点升级它,并得到了相似的结果:

Then I tried to upgrade it from remote site and got similar result:

C:\Users\skumar>pip install --upgrade --use-wheel --no-index --trusted-host www.
lfd.uci.edu --find-links=http://www.lfd.uci.edu/~gohlke/pythonlibs/ scikit-learn

Ignoring indexes: https://pypi.python.org/simple
Requirement already up-to-date: scikit-learn in c:\anaconda3\lib\site-packages

在远程站点上,有两个版本,即0.16和0.17.有没有一种方法可以在命令中指定版本?或如何安装/升级轮盘文件?

On Remote site there are two versions i.e., 0.16 & 0.17. Is there a way to specify version in command? Or how do you install/upgrade wheel file?

推荐答案

Anaconda随附了conda软件包管理器,该软件包管理器旨在处理此类升级.首先更新conda本身以获取最新的软件包列表:

Anaconda comes with the conda package manager which is designed to handle these kinds of upgrades. Start by updating conda itself to get the most recent package lists:

conda update conda

然后安装所需的scikit-learn版本

And then install the version of scikit-learn you want

conda install scikit-learn=0.17

所有必需的依赖项也将被升级.如果您在Windows上使用conda时遇到问题,请在此处找到一些相关的常见问题解答: http://docs.continuum.io/anaconda/faq

All necessary dependencies will be upgraded as well. If you have trouble with conda on Windows, there are some relevant FAQ here: http://docs.continuum.io/anaconda/faq

这篇关于如何在Anaconda中升级scikit-learn软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆