-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Description:
When installing dependencies from Requirements.txt, I encounter a version conflict with the tiktoken package. The conflict arises because:
readmeai==0.5.96requirestiktoken<0.5.0 and >=0.4.0langchain-openai==0.2.5requirestiktoken<1 and >=0.7autogen==0.3.0depends ontiktoken(without version constraints)- It also explicitly specified
tiktoken==0.7.0in requirements
This creates an impossible dependency resolution since readmeai needs tiktoken<0.5.0 while langchain-openai needs tiktoken>=0.7.
Error Message:
ERROR: Cannot install -r ./Requirements.txt (line 13), -r ./Requirements.txt (line 152), -r ./Requirements.txt (line 89) and tiktoken==0.7.0 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested tiktoken==0.7.0
autogen 0.3.0 depends on tiktoken
langchain-openai 0.2.5 depends on tiktoken<1 and >=0.7
readmeai 0.5.96 depends on tiktoken<0.5.0 and >=0.4.0
Additionally, some packages in these conflicts have no matching distributions available for your environment:
tiktoken
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Environment:
- Python version: 3.9
- Operating System: Ubuntu 24.04
- pip version: 25.3
Metadata
Metadata
Assignees
Labels
No labels