问题描述
我正在尝试将 scikit-learn 的软件包从 0.16 升级到 0.17.为此,我正在尝试使用该网站上的二进制文件:http://www.51sjk.com/Upload/Articles/1/0/335/335650_20221101155958339.我有 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.51sjk.com/Upload/Articles/1/0/335/335650_20221101160002659.jpg 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: http://www.51sjk.com/Upload/Articles/1/0/335/335650_20221101160005964.jpg 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.51sjk.com/Upload/Articles/1/0/335/335650_20221101162128627.jpg scikit-learn Ignoring indexes: http://www.51sjk.com/Upload/Articles/1/0/335/335650_20221101160005964.jpg 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