1

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.
Regressor
  • 1,843
  • 4
  • 27
  • 67

2 Answers2

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
Erfan
  • 40,971
  • 8
  • 66
  • 78
  • can u let me know what conda-forge does? i hope it does not break other libraries – Regressor Aug 12 '20 at 20:15
  • It;s one of the channels, it will not break anything. – Erfan Aug 12 '20 at 20:21
  • cool thanks, can u also tell me how is `conda install` different from `pip install package-name` ? – Regressor Aug 12 '20 at 20:26
  • See [here](https://stackoverflow.com/questions/20994716/what-is-the-difference-between-pip-and-conda) – Erfan Aug 12 '20 at 20:34
  • That command just seems to run forever, has been 15 minutes so far, will it ever end? : % conda install -c conda-forge pandas==1.1.0 Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: \ – MattG Oct 12 '20 at 11:39
0

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