pip installation fails due to 403 Error
AnsweredDear Gurobi Team,
in my ci-pipeline, I install Gurobi into Python 3.9 with the following command:
pip install https://pypi.gurobi.com/gurobipy/gurobipy-9.1.0-cp39-cp39-manylinux1_x86_64.whl
This has perfectly worked until at least a few days ago. Now, suddenly, I get the following 403 error:
What am I doing wrong?
Thank you!
-
Hi Mathias,
We recently moved the gurobipy packages onto the official PyPI server, so you can just call
pip install gurobipy
to install the latest version. In general, it is not recommended to specify a specific wheel as you do in your question - it's the task of pip to find the appropriate version for your system.
Cheers,
Matthias2 -
Hi Matthias,
thanks for your quick answer. That solves my problem.
Regards,
Mathias
0 -
Great! But it seems that the documentation is still pointing to the old private PyPI server:
python -m pip install -i https://pypi.gurobi.com gurobipy
0 -
Hi Wouter,
Thanks for the heads-up! This will be updated as soon as the 9.1.2 documentation is online, which is going to happen any day now. Regardless, the old command is also going to work because we redirect from this server to the official one. You just cannot point to a specific file on that server because then the redirect does not work anymore.
Have a great weekend!
Matthias1
Please sign in to leave a comment.
Comments
4 comments