langchain-serve icon indicating copy to clipboard operation
langchain-serve copied to clipboard

Cannot install jina because these package versions have conflicting dependencies

Open jasonz1360 opened this issue 1 year ago • 3 comments

Macbook M1

steps: run pip install langchain-serve

ERROR: Cannot install jina because these package versions have conflicting dependencies.

The conflict is caused by: opentelemetry-instrumentation-aiohttp-client 0.33b0 depends on opentelemetry-instrumentation==0.33b0 opentelemetry-instrumentation-fastapi 0.40b0 depends on opentelemetry-instrumentation==0.40b0 opentelemetry-instrumentation-aiohttp-client 0.33b0 depends on opentelemetry-instrumentation==0.33b0 opentelemetry-instrumentation-fastapi 0.39b0 depends on opentelemetry-instrumentation==0.39b0 opentelemetry-instrumentation-aiohttp-client 0.33b0 depends on opentelemetry-instrumentation==0.33b0 opentelemetry-instrumentation-fastapi 0.38b0 depends on opentelemetry-instrumentation==0.38b0 opentelemetry-instrumentation-aiohttp-client 0.33b0 depends on opentelemetry-instrumentation==0.33b0 opentelemetry-instrumentation-fastapi 0.37b0 depends on opentelemetry-instrumentation==0.37b0 opentelemetry-instrumentation-aiohttp-client 0.33b0 depends on opentelemetry-instrumentation==0.33b0 opentelemetry-instrumentation-fastapi 0.36b0 depends on opentelemetry-instrumentation==0.36b0 opentelemetry-instrumentation-aiohttp-client 0.33b0 depends on opentelemetry-instrumentation==0.33b0 opentelemetry-instrumentation-fastapi 0.35b0 depends on opentelemetry-instrumentation==0.35b0 opentelemetry-instrumentation-aiohttp-client 0.33b0 depends on opentelemetry-instrumentation==0.33b0 opentelemetry-instrumentation-fastapi 0.34b0 depends on opentelemetry-instrumentation==0.34b0

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

jasonz1360 avatar Sep 07 '23 00:09 jasonz1360

There has been a new release of jina that should have fixed this. Can you make sure to install jina==3.20.2 ?

JoanFM avatar Sep 07 '23 06:09 JoanFM

I met with the same issue and tried to install jina==3.20.2 from command line but still does not work for me, then I changed the version in requirements.txt and install from the source code. It works for me now. git clone https://github.com/jina-ai/langchain-serve.git cd langchain-serve pip install .

Jiahuan-Pei avatar Sep 07 '23 12:09 Jiahuan-Pei

@JoanFM Hi, I finally fix issue by these steps:

pip install langchain-serve --use-deprecated legacy-resolver pip install jina==3.20.2 pip install langchain-serve

I don't know why, but it works.

jasonz1360 avatar Sep 10 '23 00:09 jasonz1360