The standard Gurobi installation packages also include a Python distribution to use Gurobi's interactive shell. This can be started using
gurobi.sh on Linux and macOS or
gurobi.bat on Windows.
If you install Gurobi via Anaconda, i.e.
conda install gurobi, you already have a working Python environment and there is no use for the interactive shell. You may want to start IPython or a Jupyter notebook for the interactive experience. To test whether the installation was successful and whether your license is set up correctly, you can run
A typical error message when trying to run
gurobi.sh for an Anaconda installation looks like this:
Could not open PYTHONSTARTUP
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/anaconda/lib/gurobi.py'