In a typical workflow, each PyCharm project will have a virtual environment (venv) associated with it. The gurobipy package must be available to the python interpreter of that venv. Here are instructions:
- Go to a terminal window from within PyCharm, using the button at the bottom left.
- Follow the installation instructions at the end of this section of the Quick Start guide.
(venv) bash-3.2$ which python /Users/username/PycharmProjects/TestProject/venv/bin/python (venv) bash-3.2$ cd /Library/gurobi900/mac64/ (venv) bash-3.2$ python setup.py install