問題描述
我正在嘗試將 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 軟件包的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!