coin-or / python-mip

Python-MIP: collection of Python tools for the modeling and solution of Mixed-Integer Linear programs
Eclipse Public License 2.0
513 stars 88 forks source link

Failed building wheel for cffi #326

Closed emilyziech closed 1 year ago

emilyziech commented 1 year ago

Describe the bug While attempting to install mip using pip on Windows, pip failed to build wheel for cffi, then also python setup.py bdist_wheel did not run successfully.

To Reproduce pip install mip

Expected behavior mip should be installed with no errors

Desktop (please complete the following information):

Additional context Full output: MIP_install_output.txt

jurasofish commented 1 year ago

This is an issue with installing cffi. Seems there are no prebuilt wheels for python 3.11 for the version of cffi that python mip requires and your computer doesn't have the required software to build it. common issue, quickest and easiest solution for you would likely be to use python 3.10 instead.

sebheger commented 1 year ago

@emilyziech Python 3.11. is not supported by python-mip yet. As @jurasofish already stated above, you need to "downgrade" to python 3.10.

It is surprising to me, that pip lets you start to install python-mip under python 3.11. I will need to take a look at the pyproject.toml file trying to forbid this.

sebheger commented 1 year ago

Yep, we have no upper bound requires-python = ">=3.7"

sebheger commented 1 year ago

@emilyziech I have released version an updated version 1.15.0 which includes support for python 3.11. Would you be so kind to confirm that you can now install it successfully?

sebheger commented 1 year ago

@emilyziech I will close this issue, as i would consider this to be solved with release 1.15.0