question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conflicting dependency error on Windows machine

See original GitHub issue

Hello,

I am following the installation steps on anaconda3 and I get the following error:

ERROR: Cannot install cell2location and scvi-tools because these package versions have conflicting dependencies.

The conflict is caused by:
    numpyro 0.9.2 depends on jaxlib>=0.1.65
    numpyro 0.9.1 depends on jaxlib>=0.1.65
    numpyro 0.9.0 depends on jaxlib>=0.1.65
    numpyro 0.8.0 depends on jaxlib>=0.1.65
    numpyro 0.7.2 depends on jaxlib>=0.1.65
    numpyro 0.7.1 depends on jaxlib>=0.1.65
    numpyro 0.7.0 depends on jaxlib>=0.1.65
    numpyro 0.6.0 depends on jaxlib==0.1.62
    scvi-tools 0.15.3 depends on jax>=0.3
    flax 0.1.0 depends on jax>=0.1.59
    numpyro 0.5.0 depends on jax==0.2.8
    scvi-tools 0.15.3 depends on jax>=0.3
    flax 0.1.0 depends on jax>=0.1.59
    numpyro 0.4.1 depends on jax==0.2.3
    numpyro 0.4.0 depends on jaxlib==0.1.55
    scvi-tools 0.15.3 depends on jax>=0.3
    flax 0.1.0 depends on jax>=0.1.59
    numpyro 0.3.0 depends on jax==0.1.73
    numpyro 0.2.4 depends on jaxlib==0.1.37
    numpyro 0.2.3 depends on jaxlib==0.1.36
    numpyro 0.2.2 depends on jaxlib==0.1.36
    scvi-tools 0.15.3 depends on jax>=0.3
    flax 0.1.0 depends on jax>=0.1.59
    numpyro 0.2.1 depends on jax==0.1.49
    numpyro 0.2.0 depends on jaxlib==0.1.27
    scvi-tools 0.15.3 depends on jax>=0.3
    flax 0.1.0 depends on jax>=0.1.59
    numpyro 0.1.0 depends on jax==0.1.35

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

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Is it possible to loosen the requirements?

Thank you!

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rimelofcommented, Sep 21, 2022

My windows machine does not have GPU. I ended up getting cell2location installed on a linux cluster and running it there. I have no success in windows.

1reaction
vitklcommented, May 23, 2022

My best guess would be that the issue is with python user site being used instead of the conda environment. Try using

export PYTHONNOUSERSITE="literallyanyletters"

Before creating and every time before activating the environment.

Are you doing this in the HPC system? This seems to be a very common issues with how permissions on compute cluster work with pip.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How dow I know which dependencies are conflicting ... - MSDN
Hi, my projects debugs with no error messages until I run it then I get the error message: Could not load file or...
Read more >
Cannot complete the install because of a conflicting dependency
This thing creates conflicts of dependency. Eclipse tries to update which is not already existing/installed and it also tells install it first ...
Read more >
[Fixed] NPM conflicting peer dependency error
Since NPM version 7.x requires peer dependencies to be explicitly specified, this error will fire whenever a module (or any of its own ......
Read more >
ERROR: Cannot install because these package versions have ...
8 because these package versions have conflicting dependencies. The conflict is caused by: The user requested numpy==1.17.2 gluonts 0.8.0 ...
Read more >
Dependency hell - Wikipedia
If the shared package or library can only be installed in a single version, the user may need to address the problem by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found