我正在使用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:
- 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?
答案 0 :(得分:0)
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 == ?