问题描述
我在anaconda上的某些python软件包无法更新为最新版本.
例如,发行说明中显示,anaconda上的beautifulsoup4最新版本为v4.71.
没有用于Win-32或Linux-32的4.7发行版.因此,如果您使用这两种方法,那么更新conda都无济于事.您必须获取源代码并自行构建(如果可能的话).
Some of my python packages on anaconda cannot be updated to the latest version.
For instance, beautifulsoup4 latest version on anaconda is v4.71 as seen in the release notes.https://docs.anaconda.com/anaconda/reference/release-notes/
However, when I run conda update beautifulsoup4
, the latest version that I can update to is v4.6.
I discovered that the channel used by beautifulsoup4
is pypi
.
# Name Version Build Channel
beautifulsoup4 4.6.0 pypi_0 pypi
bleach 3.1.0 py_0 conda-forge
I suspect if I were to change the channel from pypi to conda-forge, I should be able to update to the latest version.
How can I change the channel from pypi to conda-forge? Or does the solution lies somewhere else?
I am using Windows 10 64-bit, python 3.7.
I was running through this problem myself.
Let's take a look at versions in conda-forge and PyPi:
Both are actually up to date. So the problem here isn't as much the channels but conda mixing up the reference for the labels.
Update conda with
conda update
Run that and it will update packages as well, including beautifulsoup4.
After this, you'll notice that creating new environment with just conda install beautifulsoup4
will return you the latest version.
Another curious thing to notice is that
There aren't distributions of 4.7 for Win-32 or Linux-32. So, if you are on either of those, updating conda won't help. You'll have to get the source code and build it yourself (if it is even possible).
这篇关于无法将Anaconda上的python包更新为最新版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!