如何创建一个Docker环境并使用 anaconda pip install 安装依赖 / 如何在codalab上使用自定义的docker
- 安装并启动Docker
docker run -itd -u root codalab/codalab-legacy /bin/bash
Unable to find image 'codalab/codalab-legacy:latest'
locally latest: Pulling from codalab/codalab-legacy
docker exec -it -u root b5af2dbd98a4 bash
wget https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh
sh Anaconda3-2021.11-Linux-x86_64.sh
rm Anaconda3-2021.11-Linux-x86_64.sh
root@23e28502ec55:/# cd ~
root@23e28502ec55:~# conda config --set show_channel_urls yes
root@23e28502ec55:~# ls -a
. .. .bashrc .cache .conda .condarc .continuum .profile
What's the default user for docker exec?
apt-get install vim
conda create --name trackeval python=3.7
show_channel_urls: true
ssl_verify: true
channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda create --name trackeval python=3.7
source activate trackeval
- `pip install -r requirements.txt
本博文本意在于记录个人的思考与经验,部分博文采用英语写作,可能影响可读性,请见谅
本文来自博客园,作者:ZXYFrank,转载请注明原文链接:https://www.cnblogs.com/zxyfrank/p/16256895.html