Skip to content

Installation fails on Python 3.12 (scipy==1.8.1 incompatible) #38

@xOctave

Description

@xOctave

🐛 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

  1. Update the SciPy dependency to a version compatible with Python 3.12:

    scipy>=1.16.3
    
  2. Review dependent packages (e.g. albumentations, imgaug) for compatibility with recent SciPy.

  3. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions