how do I update pandas library using conda in mac os?

本秂侑毒 提交于 2021-02-11 08:10:37

问题


I installed anaconda in my Mac and it shows pandas version as 1.0.5. (using conda list )

I want to upgrade my pandas version. How can I do it using conda commands?

I tried conda update pandas but it shows me this

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.

回答1:


Apparentely the conda channel has net yet updated the default to the latest pandas version which is 1.1.0, so we have specify the version:

conda install -c conda-forge pandas==1.1.0



回答2:


I had the same problems as you. This was my sequence of commands that was finally successful. It's not ideal to update everything, but it worked. Save this idea for a last ditch effort.

conda deactivate
conda update --all


来源:https://stackoverflow.com/questions/63383982/how-do-i-update-pandas-library-using-conda-in-mac-os

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!