Gurobi / gurobipy-pandas

Convenience wrapper for building optimization models from pandas data
https://gurobipy-pandas.readthedocs.io/en/stable/
Apache License 2.0
83 stars 15 forks source link

pip install from python3.7 fetches a broken package #54

Closed simonbowly closed 1 year ago

simonbowly commented 1 year ago

Dependencies for 1.0.0 are python>=3.8, but some of the beta builds allowed python3.7 and are still on pypi. We should yank those betas to avoid installation mishaps.

If any new users are running into initial usage troubles: please check that you have python3.8 or later, and at least gurobipy-pandas 1.0.0 is installed (not version 0.1.0b3).

simonbowly commented 1 year ago

Current behaviour (latest pandas also doesn't support py37, which is the main reason gurobipy-pandas doesn't support it):

> python3.7 --version
Python 3.7.16
> python3.7 -m pip --version
pip 23.0 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
> python3.7 -m pip install gurobipy-pandas
...
...
> python3.7 -m pip list
Package         Version
--------------- --------
gurobipy        10.0.1
gurobipy-pandas 0.1.0b3     <- beta version of gurobipy-pandas
numpy           1.21.6
pandas          1.3.5       <- out of date pandas
pip             23.0
python-dateutil 2.8.2
pytz            2022.7.1
setuptools      65.6.3
six             1.16.0
wheel           0.38.4
simonbowly commented 1 year ago

pre 0.2.0 builds which allowed python3.7 have been removed, now we get an error instead of a bad package. Closing.

> python3.7 --version
Python 3.7.16
(py37) bowly@bowly-macbookpro-2021: ~
> python3.7 -m pip --version
pip 23.0 from /Users/bowly/virtualenvs/py37/lib/python3.7/site-packages/pip (python 3.7)
(py37) bowly@bowly-macbookpro-2021: ~
> python3.7 -m pip install gurobipy-pandas
ERROR: Ignored the following versions that require a different python version: 0.2.0b0 Requires-Python >=3.8; 0.2.1b0 Requires-Python >=3.8; 1.0.0 Requires-Python >=3.8
ERROR: Could not find a version that satisfies the requirement gurobipy-pandas (from versions: 0.0.1a0, 0.1.0b0, 0.1.0b1, 0.1.0b2, 0.1.0b3)
ERROR: No matching distribution found for gurobipy-pandas