猿问

anaconda/spyder scikit learn update 0.21.3

anaconda/spyder scikit learn update 0.21.3 to 0.22.2


(base) mm@mm:~$ python --version

Python 3.7.4

(base) mm@mm:~$ anaconda --version

anaconda Command line client (version 1.7.2)

我的版本是0.21.3,但我无法更新到0.22.2,我已经尝试了多种更新方式,但我认为此版本不包括在我的频道中。我使用的是默认通道scikit-learn


如何使用或任何其他可能的方式进行更新sckit-learnconda


我的历史记录(我尝试过的命令):


 1509  conda update conda

 1510  spyder 

 1511  conda list

 1512  conda update scikit-learn

 1513  anaconda

 1514  navigator-updater 

 1515  conda list scikit-learn

 1516  conda install scikit-learn=0.22.2

 1517  conda install scikit-learn=0.22

 1518  conda install scikit-learn==0.22.2

 1519  conda install -c intel scikit-learn

 1520  spyder 

 1521  history 

以及我在尝试时遇到的错误:conda install


(base) mm@mm:~$ conda install scikit-learn=0.22.2

Collecting package metadata (current_repodata.json): done

Solving environment: failed with initial frozen solve. Retrying with flexible solve.

Collecting package metadata (repodata.json): done

Solving environment: failed with initial frozen solve. Retrying with flexible solve.


PackagesNotFoundError: The following packages are not available from current channels:


  - scikit-learn=0.22.2


Current channels:


  - https://repo.anaconda.com/pkgs/main/linux-64

  - https://repo.anaconda.com/pkgs/main/noarch

  - https://repo.anaconda.com/pkgs/r/linux-64

  - https://repo.anaconda.com/pkgs/r/noarch


海绵宝宝撒
浏览 134回答 1
1回答

DIEA

使用 时,并非每个包都可从默认通道获得包的最新版本,也并不总是提供最新版本的包。conda install您可以通过两种方式检查已配置的频道中可用的频道:conda search scikit-learn为您提供与名称和可用版本匹配的所有软件包的列表。在 linux x64 上,这给了我这个:scikit-learn# Name&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Version&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Build&nbsp; Channel<shortened to last few lines of list>scikit-learn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.22.1&nbsp; py36h22eb022_0&nbsp; pkgs/mainscikit-learn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.22.1&nbsp; py36hd81dba3_0&nbsp; pkgs/mainscikit-learn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.22.1&nbsp; py37h22eb022_0&nbsp; pkgs/mainscikit-learn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.22.1&nbsp; py37hd81dba3_0&nbsp; pkgs/mainscikit-learn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.22.1&nbsp; py38h22eb022_0&nbsp; pkgs/mainscikit-learn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.22.1&nbsp; py38hd81dba3_0&nbsp; pkgs/main因此,只能从默认通道获得。您还可以使用 anaconda.org 进行检查,您可以在其中使用 saerch 函数来获取以下内容:0.22.1请注意小的灰色数字,这些数字指示(默认通道的镜像)只有版本 ,符合 。anaconda / scikit-learn0.22.1conda search output另请注意,它具有所需的版本,因此您可以使用此命令进行安装:conda-forge / scikit-learnconda&nbsp;install&nbsp;-c&nbsp;conda-forge&nbsp;scikit-learn=0.22.2
随时随地看视频慕课网APP

相关分类

Python
我要回答