在Anaconda上升级到scikit-learn的开发版本? [英] upgrade to dev version of scikit-learn on Anaconda?
问题描述
我正在通过Anaconda使用python,并希望使用一项新功能( http://scikit- scikit-learn中的Learn.org/dev/modules/neural_networks_supervised.html ),目前仅在开发版本0.18.dev0中可用.
I'm using python through Anaconda, and would like to use a new feature (http://scikit-learn.org/dev/modules/neural_networks_supervised.html) in scikit-learn that's currently only available in the development version 0.18.dev0.
但是,执行经典的conda update
似乎无效,因为conda没有列出任何开发包.将开发版本安装到Anaconda的最简单方法是什么? (出于价值,我使用的是64位Windows 7.)
However, doing the classical conda update
doesn't seem to work, as conda doesn't list any dev packages. What would be the simplest way to install a development version into my Anaconda? (For what it's worth, I'm using 64-bit windows 7.)
推荐答案
如果有人为该软件包生成了二进制文件并提供了可用的二进制文件,则只能使用conda
安装软件包.有些软件包会每晚发布一些版本,但允许这样做,但是scikit-learn并不是其中之一.
You can only use conda
to install a package if someone has built and made available binaries for the package. Some packages publish nightly builds that would allow this, but scikit-learn is not one of them.
要在一个命令中安装最新版本,可以使用pip;例如:
To install the bleeding-edge version in one command, you could use pip; e.g.:
$ conda install pip
$ pip install git+git://github.com/scikit-learn/scikit-learn.git
但是请记住,这需要编译库中的所有C扩展,因此如果您的系统没有为此设置,它将失败.
but keep in mind that this requires compiling all the C extensions within the library, and so it will fail if your system is not set up for that.
这篇关于在Anaconda上升级到scikit-learn的开发版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!