Dependency conflicts with installation

Hi all,
I’m trying to install gamspy using the command “pip install gamspy” as directed in the installation instructions. I am getting a large number of dependency conflicts that I’m not sure how to deal with. I would appreciate any help you can offer!

ERROR: Cannot install gamspy==0.10.0, gamspy==0.10.1, gamspy==0.10.2, gamspy==0.10.3, gamspy==0.10.4, gamspy==0.10.5, gamspy==0.11.0, gamspy==0.11.1, gamspy==0.11.10, gamspy==0.11.2, gamspy==0.11.3, gamspy==0.11.4, gamspy==0.11.5, gamspy==0.11.6, gamspy==0.11.7, gamspy==0.11.8, gamspy==0.11.9, gamspy==0.12.0, gamspy==0.12.1, gamspy==0.12.2, gamspy==0.12.3, gamspy==0.12.4, gamspy==0.12.5, gamspy==0.12.6, gamspy==0.12.7, gamspy==0.13.0, gamspy==0.13.1, gamspy==0.13.2, gamspy==0.13.3, gamspy==0.13.4, gamspy==0.13.5, gamspy==0.13.6, gamspy==0.13.7, gamspy==0.14.0, gamspy==0.14.1, gamspy==0.14.2, gamspy==0.14.3, gamspy==0.14.4, gamspy==0.14.5, gamspy==0.14.6, gamspy==0.14.7, gamspy==1.0.0, gamspy==1.0.1, gamspy==1.0.2, gamspy==1.0.3, gamspy==1.0.4, gamspy==1.1.0, gamspy==1.2.0, gamspy==1.3.0 and gamspy==1.3.1 because these package versions have conflicting dependencies.

The conflict is caused by:
gamspy 1.3.1 depends on gamspy_base==48.4.0
gamspy 1.3.0 depends on gamspy_base==48.4.0
gamspy 1.2.0 depends on gamspy-base==48.3.0
gamspy 1.1.0 depends on gamspy-base==48.2.0
gamspy 1.0.4 depends on gamspy-base==48.1.1
gamspy 1.0.3 depends on gamspy-base==47.6.0
gamspy 1.0.2 depends on gamspy-base==47.6.0
gamspy 1.0.1 depends on gamspy-base==47.6.0
gamspy 1.0.0 depends on gamspy-base==47.5.0
gamspy 0.14.7 depends on gamspy-base==47.4.1
gamspy 0.14.6 depends on gamspy-base==47.4.1
gamspy 0.14.5 depends on gamspy-base==47.4.1
gamspy 0.14.4 depends on gamspy-base==47.4.0
gamspy 0.14.3 depends on gamspy-base==47.4.0
gamspy 0.14.2 depends on gamspy-base==47.3.0
gamspy 0.14.1 depends on gamspy-base==47.3.0
gamspy 0.14.0 depends on gamspy-base==47.3.0
gamspy 0.13.7 depends on gamspy-base==47.3.0
gamspy 0.13.6 depends on gamspy-base==47.3.0
gamspy 0.13.5 depends on gamspy-base==47.3.0
gamspy 0.13.4 depends on gamspy-base==47.2.0
gamspy 0.13.3 depends on gamspy-base==47.2.0
gamspy 0.13.2 depends on gamspy-base==47.1.0
gamspy 0.13.1 depends on gamspy-base==47.1.0
gamspy 0.13.0 depends on gamspy-base==47.1.0
gamspy 0.12.7 depends on gamspy-base==47.1.0
gamspy 0.12.6 depends on gamspy-base==46.5.0
gamspy 0.12.5 depends on gamspy-base==46.5.0
gamspy 0.12.4 depends on gamspy-base==46.5.0
gamspy 0.12.3 depends on gamspy-base>=46.3.1
gamspy 0.12.2 depends on gamspy-base>=46.3.1
gamspy 0.12.1 depends on gamspy-base>=46.1.0
gamspy 0.12.0 depends on gamspy-base>=46.1.0
gamspy 0.11.10 depends on gamspy-base>=45.1.0
gamspy 0.11.9 depends on gamspy-base>=45.1.0
gamspy 0.11.8 depends on gamspy-base>=45.1.0
gamspy 0.11.7 depends on gamspy-base>=45.1.0
gamspy 0.11.6 depends on gamspy-base>=45.1.0
gamspy 0.11.5 depends on gamspy-base>=45.1.0
gamspy 0.11.4 depends on gamspy-base>=45.1.0
gamspy 0.11.3 depends on gamspy-base>=45.1.0
gamspy 0.11.2 depends on gamspy-base>=45.1.0
gamspy 0.11.1 depends on gamspy-base>=45.1.0
gamspy 0.11.0 depends on gamspy-base>=45.1.0
gamspy 0.10.5 depends on gamspy-base>=45.1.0
gamspy 0.10.4 depends on gamspy-base>=45.1.0
gamspy 0.10.3 depends on gamspy-base>=45.1.0
gamspy 0.10.2 depends on gamspy-base>=45.1.0
gamspy 0.10.1 depends on gamspy-base>=45.1.0
gamspy 0.10.0 depends on gamspy-base>=45.1.0

To fix this you could try to:

  1. loosen the range of package versions you’ve specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit Dependency Resolution - pip documentation v25.0.dev0

Hi,

I’ve got a couple of questions:

  • Which Python version you are using? You can just run python --version to get that.
  • And which packages you have in your environment? You can run python -m pip list to get that.

Using a virtual environment is highly recommended to avoid these kind of conflicting dependencies. See this to learn how to create a virtual environment and use it.