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.

Conda solver fails when installed with Pytorch + Sci-kit

See original GitHub issue

Issue

When I try to install pytorch, sci-kit family of packages, and mne at the same time, conda solver is not able to work through all the dependencies and gets stuck in a recursive solver loop with following error message:

#8 86.88 Collecting package metadata (repodata.json): ...working... done
#8 154.0 Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Examining scikit-image:  18%|█▊        | 10/56 [00:20<02:03,  2.69s/it]

Potential Resolution

Potential resolution would be to revise requirements.txt / .yml to be less restrictive. This would allow conda solver to find a solution.

Temporary Workaround

Install MNE and MNE-NIRS with pip instead of conda

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
drammockcommented, Dec 30, 2021

I can confirm that with mamba the following resolves in about 15 seconds and installation completes in under 90 seconds:

mamba create -n temp
conda activate temp
mamba install mne scikit-image pytorch  # add "-c conda-forge" if it's not your default
1reaction
drammockcommented, Dec 30, 2021

I also tried installing with mamba, and the install failed due to mayavi dependency:

If you post any more follow-ups, please include the command that led to the output, not just the output.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation issue with conda python 3.9; incompatible ... - GitHub
Update: I managed to install pytorch3d by running the commands again (for some reason), but it forced an update to pytorch's CPU only...
Read more >
Installing PyTorch under conda fails with permissions error ...
So I tried that. >conda install pytorch torchvision -c pytorch Solving environment: failed PackagesNotFoundError: The following packages are not available from ...
Read more >
[need help] torch install on linux with conda takes more than ...
Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Read more >
conda install spyder stuck on solving environment - You.com
Tried installing gunicorn using conda install -c phumke gunicorn , but it failed with below error. Collecting package metadata (repodata.json): done Solving ......
Read more >
Installing conda prerequisites error - Esri Community
conda install -c esri -c fastai -c pytorch arcgis fastai=1.0.54 pytorch=1.1.0 scikit-image --no-pin. Thanks.
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