问题
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