Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/292.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python scikit学习更新失败,Anaconda_Python_Scikit Learn_Anaconda - Fatal编程技术网

Python scikit学习更新失败,Anaconda

Python scikit学习更新失败,Anaconda,python,scikit-learn,anaconda,Python,Scikit Learn,Anaconda,我用的是蟒蛇。当我执行conda list时,它显示当前已安装scikit learn 0.19.1。我想升级到0.19.2,所以我正在做 conda config --append channels conda-forge conda install scikit-learn=0.19.2 但是我得到了以下错误: PackagesNotFoundError: The following packages are not available from current cha nnels:

我用的是蟒蛇。当我执行
conda list
时,它显示当前已安装scikit learn 0.19.1。我想升级到0.19.2,所以我正在做

conda config --append channels conda-forge
conda install scikit-learn=0.19.2 
但是我得到了以下错误:

PackagesNotFoundError: The following packages are not available from current cha
nnels:

  - scikit-learn=0.19.2

Current channels:

  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/free/win-64
  - https://repo.anaconda.com/pkgs/free/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/pro/win-64
  - https://repo.anaconda.com/pkgs/pro/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch
  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch

如何安装scikit learn 0.19.2?

scikit learn==0.19.2
您缺少第二个
=
符号,因此它找不到包

$ pip install scikit-learn=0.19.1
Invalid requirement: 'scikit-learn=0.19.1'
= is not a valid operator. Did you mean == ?

仅适用于linux和mac用户。我猜你在用Windows。是的,我在用Windows。我现在已经尝试了pip安装-U scikit学习,它安装了0.19.2。所以,当我做conda列表时,我现在看到了0.19.2和0.19.1,但pyCharm不知何故没有识别它。当我进入pyCharm设置时,会列出0.19.1。与==相同的错误,但我认为问题是它不适用于windows。