[Python] Where is the dependeny error, when installing python package from PyPi

Discussão em 'Python' iniciado por Stack, Agosto 6, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to release a package on PyPi. When I test the package I get the following error:

    The conflict is caused by:
    bw2calc 2.1 depends on fsspec
    bw2calc 2.0.2 depends on fsspec
    bw2calc 2.0.1 depends on fsspec
    bw2calc 2.0 depends on fsspec

    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


    But where is the dependency error? If all allowed versions of bw2calc depend on the same package whose version is not specified, everything should be fine, or not?

    My dependencies in my setup.cfg file looks like:

    install_requires =
    importlib-metadata; python_version<"3.8"
    pydantic
    bw2calc>= 2.0
    bw2data>= 4.0.dev11
    pint

    Continue reading...

Compartilhe esta Página