stevensu1977 / appstore-review-llm

appstore-reviews-llm
MIT No Attribution
7 stars 3 forks source link

crewai and langchain conflict with python 3.12, but works well with python 3.11 #1

Closed readybuilderone closed 6 months ago

readybuilderone commented 6 months ago

working with python 3.12, when I run pip install -r requirement.txt, I met this error:

INFO: pip is looking at multiple versions of chromadb to determine which version is compatible with other requirements. This could take a while. Collecting chromadb<0.5.0,>=0.4.17 (from embedchain<0.2.0,>=0.1.98->crewai->-r requirements.txt (line 3)) Using cached chromadb-0.4.23-py3-none-any.whl.metadata (7.3 kB) Using cached chromadb-0.4.22-py3-none-any.whl.metadata (7.3 kB) Using cached chromadb-0.4.21-py3-none-any.whl.metadata (7.3 kB) Using cached chromadb-0.4.20-py3-none-any.whl.metadata (7.3 kB) Using cached chromadb-0.4.19-py3-none-any.whl.metadata (7.3 kB) Using cached chromadb-0.4.18-py3-none-any.whl.metadata (7.4 kB) Using cached chromadb-0.4.17-py3-none-any.whl.metadata (7.3 kB) INFO: pip is still looking at multiple versions of chromadb to determine which version is compatible with other requirements. This could take a while. Collecting embedchain<0.2.0,>=0.1.98 (from crewai->-r requirements.txt (line 3)) Using cached embedchain-0.1.101-py3-none-any.whl.metadata (10 kB) INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C. Using cached embedchain-0.1.100-py3-none-any.whl.metadata (10 kB) Using cached embedchain-0.1.99-py3-none-any.whl.metadata (10 kB) Using cached embedchain-0.1.98-py3-none-any.whl.metadata (10 kB) ERROR: Cannot install embedchain because these package versions have conflicting dependencies. The conflict is caused by: chromadb 0.4.24 depends on onnxruntime>=1.14.1 chromadb 0.4.23 depends on onnxruntime>=1.14.1 chromadb 0.4.22 depends on onnxruntime>=1.14.1 chromadb 0.4.21 depends on onnxruntime>=1.14.1 chromadb 0.4.20 depends on onnxruntime>=1.14.1 chromadb 0.4.19 depends on onnxruntime>=1.14.1 chromadb 0.4.18 depends on onnxruntime>=1.14.1 chromadb 0.4.17 depends on onnxruntime>=1.14.1

They I tried python 3.11, the whole project works well.

readybuilderone commented 6 months ago

To install crewAI, you need to have Python >=3.10 and <=3.13 installed on your system:

https://docs.crewai.com/how-to/Installing-CrewAI/