How to upgrade scikit-learn package in anaconda(如何在 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 软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 anaconda 中升级 scikit-learn 软件包
基础教程推荐
- 将 x 轴刻度更改为自定义字符串 2022-01-01
- pyserial - 可以从线程 a 写入串行端口,是否阻塞从线程 b 读取? 2022-01-01
- 与常规 dict 相比,Python manager.dict() 非常慢 2022-01-01
- 使用生成器和迭代器时 Python 多循环失败 2022-01-01
- 尝试制作WhatsApp机器人 2022-01-01
- numpy float:比算术运算中内置的慢 10 倍? 2022-01-01
- 由Python将MP3转换为MIDI(类型错误:无法加载插件:mtg-Melodia:Melodia) 2022-01-01
- Discord.py 缺少必需的参数 2022-01-01
- 用 Python 编写 Fortran 无格式文件 2022-01-01
- 在 Celery 工作人员中捕获 Heroku SIGTERM 以优雅地关 2022-01-01
