Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command "conda env create -f anaconda_env.yml" fails #42

Open
basilmusa opened this issue Jun 2, 2024 · 2 comments
Open

Command "conda env create -f anaconda_env.yml" fails #42

basilmusa opened this issue Jun 2, 2024 · 2 comments

Comments

@basilmusa
Copy link

My environment is:

  • Apple M1 Pro
  • MacOS Sonoma 14.5
  • conda 24.5.0

Command I ran:

conda env create -f anaconda_env.yml

My fix:

Failed with error:

Channels:
 - pytorch
 - conda-forge
 - defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: failed
Channels:
 - pytorch
 - conda-forge
 - defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides requested pytorch::torchvision
  - nothing provides requested pytorch::torchaudio
  - nothing provides requested pytorch::pytorch
  - nothing provides kaleido-core 0.1.0.* needed by python-kaleido-0.1.0-pyhd8ed1ab_0

Could not solve for environment specs
The following packages are incompatible
├─ python-kaleido 0.1.0  is not installable because it requires
│  └─ kaleido-core 0.1.0.* , which does not exist (perhaps a missing channel);
├─ pytorch does not exist (perhaps a typo or a missing channel);
├─ torchaudio does not exist (perhaps a typo or a missing channel);
└─ torchvision does not exist (perhaps a typo or a missing channel).
@basilmusa
Copy link
Author

basilmusa commented Jun 2, 2024

I did the following to make it work.
Just changed anaconda_env.yml:

Changed the following lines in anaconda_env.yml with the following changes and now everything works well:

  -  - python-kaleido==0.1.0
  +  - python-kaleido
  ...
  -  - pytorch::pytorch
  -  - pytorch::torchvision
  -  - pytorch::torchaudio
  +  - pytorch
  +  - torchvision
  +  - torchaudio

@manujosephv
Copy link
Collaborator

That's great! I'm currently working on a second edition and planning to make the environment setup easier and more current .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants