使用Conda进行批量包装更新

问题:使用Conda进行批量包装更新

有没有一种方法(使用conda更新),我可以列出过时的软件包并选择或批量更新Anaconda中的软件包(兼容)?

单独更新软件包没有太大意义,因为有数百个软件包。

Is there a way (using conda update) that I can list outdated packages and select or bulk update (compatible) packages in Anaconda?

It doesn’t make much sense updating the packages individually as there are hundreds of them.


回答 0

你要conda update --all

conda search --outdated将显示过时的软件包并对其conda update --all进行更新(请注意,后者不会将您从Python 2更新到Python 3,但如果您使用Python 2,前者将显示Python已过时)。

You want conda update --all.

conda search --outdated will show outdated packages, and conda update --all will update them (note that the latter will not update you from Python 2 to Python 3, but the former will show Python as being outdated if you do use Python 2).


回答 1

在继续执行conda update --all命令之前,conda update conda如果很长时间没有更新conda,请先使用command更新它。它发生在我身上(Anaconda 64位上的Python 2.7.13)。

Before you proceed to conda update --all command, first update conda with conda update conda command if you haven’t update it for a long time. It happent to me (Python 2.7.13 on Anaconda 64 bits).


回答 2

Conda Package Manager几乎已准备好进行Beta测试,但直到Spyder 2.4(https://github.com/spyder-ide/spyder/wiki/Roadmap)发行后,才能完全集成。准备好进行测试后,我们会在邮件列表(https://groups.google.com/forum/#!forum/spyderlib)上发布一些内容。请务必订阅

干杯!

the Conda Package Manager is almost ready for beta testing, but it will not be fully integrated until the release of Spyder 2.4 (https://github.com/spyder-ide/spyder/wiki/Roadmap). As soon as we have it ready for testing we will post something on the mailing list (https://groups.google.com/forum/#!forum/spyderlib). Be sure to subscribe

Cheers!


回答 3

# list packages that can be updated
conda search --outdated

# update all packages prompted(by asking the user yes/no)
conda update --all

# update all packages unprompted
conda update --all -y
# list packages that can be updated
conda search --outdated

# update all packages prompted(by asking the user yes/no)
conda update --all

# update all packages unprompted
conda update --all -y