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

查看:53
本文介绍了如何在 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:Usersskumar>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:anaconda3libsite-packages

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

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

C:Usersskumar>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:anaconda3libsite-packages

在远程站点上有两个版本,即 0.16 和0.17.有没有办法在命令中指定版本?或者你如何安装/升级wheel文件?

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/常见问题解答

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天全站免登陆