allenai / scispacy

A full spaCy pipeline and models for scientific/biomedical documents.
https://allenai.github.io/scispacy/
Apache License 2.0
1.72k stars 229 forks source link

It fails installation scipy<1.11 #521

Closed ainilaha closed 2 months ago

ainilaha commented 3 months ago

Collecting scipy<1.11 (from scispacy) Using cached scipy-1.9.3.tar.gz (42.1 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [40 lines of output]

dakinggg commented 3 months ago

Hi @ainilaha, please share more about your installation setup. What command did you run? What is the full error? What environment are you installing in? This project doesn't have a pyproject.toml, so I suspect you are installing a different package.

JSchmie commented 3 months ago

I encountered the same issue while using Conda. It appears that Conda now defaults to Python 3.12.*, which is causing the problem. To resolve this, I downgraded my Python version to 3.9.19, and it worked perfectly.

In the setup.py of scispacy, it specifies python>=3.6, leading pip to attempt an installation even though it is no longer compatible with the latest Python version.

Hope this helps!