- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
- bash ./Miniconda3-latest-Linux-x86_64.sh
- mkdir projects
- cd projects
- git clone https://github.com/waveshare/donkeycar
- cd donkeycar
- git checkout master
- conda update -n base -c defaults conda
- conda env remove -n donkey
- conda env create -f install/envs/ubuntu.yml
- conda activate donkey
- pip install -e .[pc]
注意:此处安装的是Tensorflow CPU版本,虚拟机不支持安装GPU版本。安装GPU版本ubuntu需安装到实体机,而且机器需要带Nvidia显卡。
- conda install tensorflow==1.13.1
- donkey createcar --path ~/mycar
注意:重新打开终端后需运行conda activate donkey命令重新进入donkey虚拟环境中