Note: This only affects Gurobi 9.1.0 and earlier running on the Windows platform with Python versions 3.8 and later.
When installing Gurobi via conda, i.e.,
conda install -c gurobi gurobi
you may receive an error similar to:
expected str, bytes or os.PathLike object, not NoneType
Workaround: The error can be fixed by either:
- installing the full Gurobi package as described in How do I install Gurobi for Python? or
- defining the environment variable GUROBI_HOME manually.