如何在Mac OS中使用conda更新熊猫库?

问题描述

我在Mac上安装了anaconda,它显示的熊猫版本为1.0.5。 (使用conda list

我想升级我的熊猫版本。我该如何使用conda命令?

我尝试了conda update pandas,但它告诉了我

conda update pandas
Collecting package Metadata (current_repodata.json): done
Solving environment: | 

Updating pandas is constricted by 

anaconda -> requires pandas==1.0.5=py38h959d312_0

If you are sure you want an update of your package either try `conda update --all` or install a specific version of the package you want using `conda install <pkg>=<version>`

done

# All requested packages already installed.

解决方法

显然,conda频道已将默认设置更新为最新的熊猫版本1.1.0,因此我们指定了以下版本:

conda install -c conda-forge pandas==1.1.0
,

我和你有同样的问题。这是我的命令序列,终于成功了。更新所有内容并不理想,但它确实有效。保存这个想法以作最后的努力。

conda deactivate
conda update --all