PacktPublishing / Modern-Time-Series-Forecasting-with-Python

Modern Time Series Forecasting with Python, published by Packt
MIT License
379 stars 201 forks source link

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

Open basilmusa opened 1 month ago

basilmusa commented 1 month ago

My environment is:

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 commented 1 month ago

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 commented 1 month ago

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