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:
os.add_dll_directory(os.path.join(os.getenv('GUROBI_HOME'),'bin')) TypeError:
expected str, bytes or os.PathLike object, not NoneType
Workaround: The error can be fixed by either:
- Updating your Gurobin installation.
- Installing the full Gurobi package as described in: How do I install Gurobi for Python?
- Defining the environment variable GUROBI_HOME manually.
Comments
0 comments
Article is closed for comments.