Fastai cpu only version installation failed to install core

(Curious Learner ) #1

So, my macbook doesn’t have GPU that can support pytorch GPU. I installed torch cpu version using conda and trying to install fastai core to use fastai datasets but I can’t seem to install it using conda

I get this error. I don’t understand why. Can anyone help me fix this? My macbook doesn’t support GPU installation for PyTorch

I’m following this guide for custom installation: https://docs.fast.ai/install.html#custom-dependencies

$ conda install -c pytorch -c fastai $(python setup.py -q deps --dep-conda --dep-groups=core)                              ✔ master
Collecting package metadata: done
Solving environment: -
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - fastai/noarch::fastai==1.0.54=1
failed

PackagesNotFoundError: The following packages are not available from current channels:

  - pynvx[version='>=1.0.0']

Current channels:

  - https://conda.anaconda.org/pytorch/osx-64
  - https://conda.anaconda.org/pytorch/noarch
  - https://conda.anaconda.org/fastai/osx-64
  - https://conda.anaconda.org/fastai/noarch
  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/free/osx-64
  - https://repo.anaconda.com/pkgs/free/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
0 Likes

(sam zo) #2

I went through similar errors, and finally succeed by

  1. clean install anaconda from scratch(I suspect this is not necessary)
  2. create a new environment to install python3.6 version

https://docs.fast.ai/troubleshoot.html
then search for ’ Dedicated environment’

0 Likes

(Curious Learner ) #3

There’s Solving environment failure. This is a new error. I followed the instructions on Dedicated Environment and then did this installation

(fastai-3.6) ❯ conda install -c pytorch -c fastai $(python setup.py -q deps --dep-conda --dep-groups=core,vision)
Collecting package metadata (current_repodata.json): done
Solving environment: failed
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - pynvx[version='>=1.0.0']

Current channels:

  - https://conda.anaconda.org/pytorch/osx-64
  - https://conda.anaconda.org/pytorch/noarch
  - https://conda.anaconda.org/fastai/osx-64
  - https://conda.anaconda.org/fastai/noarch
  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
0 Likes

(Mac Mohan) #4

@curious_sperm you can try cloud GPU with clouderizer.com, it’s quite promising and you will get PyTorch with them. If you want the latest library then you can install it once.

0 Likes

(sam zo) #5

have you tried

conda install -c pytorch -c fasai fastai

I suppose you want the git latest version using $(python …)
I will try the binary one in fastai channel first, is it not available in mac?

0 Likes

(varun) #6

typo there

conda install -c pytorch -c fastai fastai

0 Likes