petermr / docanalysis

Semantic analysis of text documents including sentence and paragraph splitting
Apache License 2.0
13 stars 3 forks source link

alysis 0.1.1 requires spacy==3.0.7, but you have spacy 3.2.4 which is incompatible. #16

Open EmanuelFaria opened 2 years ago

EmanuelFaria commented 2 years ago

Issue: Spacy and SciSpacy have conflicts with docanalysis:

What I did: Installed a scispacy module using the following command:

[](% pip3 install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.0/en_core_sci_lg-0.5.0.tar.gz Collecting https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.0/en_core_sci_lg-0.5.0.tar.gz)

What happened:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
scispacy 0.4.0 requires spacy<3.1.0,>=3.0.0, but you have spacy 3.2.4 which is incompatible.
en-core-web-sm 3.0.0 requires spacy<3.1.0,>=3.0.0, but you have spacy 3.2.4 which is incompatible.
docanalysis 0.1.1 requires spacy==3.0.7, but you have spacy 3.2.4 which is incompatible.

After installing the version of spacy required by v0.1.1 of docanalysis running the following command: pip3 install spacy==3.0.7 ...the docanalysis dependency error was resolved, but the other errors remained:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
spacy-transformers 1.1.6 requires spacy<4.0.0,>=3.1.3, but you have spacy 3.0.7 which is incompatible.
en-core-sci-scibert 0.5.0 requires spacy<3.3.0,>=3.2.3, but you have spacy 3.0.7 which is incompatible.
en-core-sci-lg 0.5.0 requires spacy<3.3.0,>=3.2.3, but you have spacy 3.0.7 which is incompatible.
EmanuelFaria commented 2 years ago

I found this document about dependency resolution. Maybe it will be helpful:

https://pip.pypa.io/en/stable/topics/dependency-resolution/