chainer / chainercv

ChainerCV: a Library for Deep Learning in Computer Vision
MIT License
1.48k stars 304 forks source link

can't install environment, invalid channel #946

Closed rbavery closed 4 years ago

rbavery commented 4 years ago

I followed the docs instructions and also ran

conda config --set always_yes yes --set changeps1 no
conda update -q conda

but it errors because of an invalid channel error. Haven't seen this before

(base) ryan@cropmask-mgpu-18-v2:~/chainercv$ conda env create -f environment.yml
Collecting package metadata (repodata.json): failed

UnavailableInvalidChannel: The channel is not accessible or is invalid.
  channel name: mpi4py
  channel url: https://conda.anaconda.org/mpi4py
  error code: 404

You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state,
and use `conda config --show-sources` to view config file locations.

my settings:

(base) ryan@cropmask-mgpu-18-v2:~/chainercv$ conda config --show-sources
==> /home/ryan/.condarc <==
changeps1: False
always_yes: True

(base) ryan@cropmask-mgpu-18-v2:~/chainercv$ conda config --show channels
channels:
  - defaults

Any tips?

rbavery commented 4 years ago

It looks like this channel does not exist and that's why the install is failing. https://conda.anaconda.org/mpi4py

Hakuyume commented 4 years ago

YAMLs for conda are not maintained well (and not tested in CI). I found mpi4py in conda-forge channel (https://anaconda.org/conda-forge/mpi4py). Can you try this?

rbavery commented 4 years ago

I was able to get it installed by removing the mpi4py channel from the environment.yml and ran the demo successfully, thanks @Hakuyume