Loading

如何创建一个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

Conda CheatSheet

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
posted @ 2022-05-11 10:27  ZXYFrank  阅读(210)  评论(0编辑  收藏  举报