From 259a4ec216f990186df372587f93d6fb823755ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Merx?= Date: Sat, 31 Jul 2021 09:53:59 +0800 Subject: [PATCH] Docker: add conda-forge channel to avoid PackagesNotFoundError Got the following error on `docker build`: ``` #5 2.257 PackagesNotFoundError: The following packages are not available from current channels: #5 2.257 #5 2.257 - python=3.6 ``` After adding the conda-forge channel, was able to create a python 3.6 env. --- docker/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 449fb913..001cf4f3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,6 +2,7 @@ FROM continuumio/miniconda3 MAINTAINER Gilles Bodart +RUN conda config --append channels conda-forge RUN conda create -n env python=3.6 RUN echo "source activate env" > ~/.bashrc ENV PATH /opt/conda/envs/env/bin:$PATH