Skip to content

Dependency Conflict: readmeai requires tiktoken<0.5.0 while other packages require tiktoken>=0.7 #2

@DetLFY

Description

@DetLFY

Description:
When installing dependencies from Requirements.txt, I encounter a version conflict with the tiktoken package. The conflict arises because:

  1. readmeai==0.5.96 requires tiktoken<0.5.0 and >=0.4.0
  2. langchain-openai==0.2.5 requires tiktoken<1 and >=0.7
  3. autogen==0.3.0 depends on tiktoken (without version constraints)
  4. It also explicitly specified tiktoken==0.7.0 in 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions