When using the Anaconda installation process
conda install gurobi to install Gurobi, you may receive an error such as:
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
- gurobi -> python[version='2.7.*|3.5.*|>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|3.4.*']
Your python: python=3.8
When this happens, it indicates that your Python version is not compatible with the current Gurobi version. This generally means that your Anaconda installation is newer than the Gurobi package available via
conda install. In this case, you can either:
- Install an earlier version of Python in Anaconda, such as:
conda install -c anaconda python=3.9then run
conda install gurobiagain, or
- Check if the current Gurobi release is compatible with your version of Python. If so, follow the instructions for installing the full Gurobi Optimizer package in How do I install Gurobi for Python?
Please sign in to leave a comment.