🐛 Installation fails on Python 3.12 (scipy==1.8.1 incompatible)
Summary
When installing CVLface from requirements.txt in a clean Python 3.12 virtual environment, the installation fails because scipy==1.8.1 has no wheels for Python 3.12 and is not compatible.
🔧 Environment
- OS: Linux
- Python: 3.12.3
- Install method:
pip install -r requirements.txt
- Virtualenv: created with
python3 -m venv venv
🧩 Steps to reproduce
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
❌ Actual behavior
Installation stops during dependency resolution:
ERROR: Ignored the following versions that require a different python version: ...
ERROR: Could not find a version that satisfies the requirement scipy==1.8.1
ERROR: No matching distribution found for scipy==1.8.1
✅ Expected behavior
All dependencies should install successfully in a clean virtual environment.
📋 Analysis
- The
requirements.txt file (or one of its dependencies) pins scipy==1.8.1.
- SciPy 1.8.x only provides wheels for Python ≤3.10 and is incompatible with Python 3.12.
- Pip’s resolver confirms many versions are skipped because they require
<3.12.
💡 Suggestions
-
Update the SciPy dependency to a version compatible with Python 3.12:
-
Review dependent packages (e.g. albumentations, imgaug) for compatibility with recent SciPy.
-
Add python_requires in pyproject.toml or setup.cfg to clearly state the supported Python versions (if Python 3.12 isn’t yet supported).
🧭 Workaround for users
Until this is fixed, use Python 3.10 or 3.11:
I change the `requirements.txt´ file with the following line
scipy==1.16.3
Thanks!
🐛 Installation fails on Python 3.12 (
scipy==1.8.1incompatible)Summary
When installing CVLface from
requirements.txtin a clean Python 3.12 virtual environment, the installation fails becausescipy==1.8.1has no wheels for Python 3.12 and is not compatible.🔧 Environment
pip install -r requirements.txtpython3 -m venv venv🧩 Steps to reproduce
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt❌ Actual behavior
Installation stops during dependency resolution:
✅ Expected behavior
All dependencies should install successfully in a clean virtual environment.
📋 Analysis
requirements.txtfile (or one of its dependencies) pinsscipy==1.8.1.<3.12.💡 Suggestions
Update the SciPy dependency to a version compatible with Python 3.12:
Review dependent packages (e.g.
albumentations,imgaug) for compatibility with recent SciPy.Add
python_requiresinpyproject.tomlorsetup.cfgto clearly state the supported Python versions (if Python 3.12 isn’t yet supported).🧭 Workaround for users
Until this is fixed, use Python 3.10 or 3.11:
I change the `requirements.txt´ file with the following line
scipy==1.16.3Thanks!