How do I remove a choco version constraint that I previously added?

302 views Asked by At

Previously, I needed a specific version of python and installed choco install python --version=3.7.5

I now want to upgrade, but choco still thinks I have this version dependency and gives me the error:

Unable to resolve dependency 'python': Unable to resolve dependencies. 'python3 3.12.0' is not compatible with 'python 3.7.5 constraint python3 (= 3.7.5)'.

Thank you.

I'm using windows 10 if that were to make a difference.

I already did an uninstall of the 3.7.5 version.

1

There are 1 answers

4
0x00 On

Chocolatey Python package is a "meta package". It depends on the python3 package and the error explicitly says python3.

Try upgrading your python3 package before upgrading python.

$ choco upgrade python3