Ubuntu 20.04 install Carla0.9.13

1. Install Carla 0.9.13

Official document GPU requirements: 8G disk space
recommended : 20G Python version: python2.7 or python3, Ubuntu20.04 is pre-installed with python3.8 Available Pip version: python2.7 uses pip, python3 uses pip or pip3, version requirement is 20.3 and above


Check python version

python3 --version
pip -V
# Ubuntu默认pip的版本是20.0.2,需要升级
pip install --upgrade pip

Insert image description here

Add installation location to working directory

gedit ~/.bashrc 
# 将这一行添加到末尾,/home/dell为主目录,每个人不一样
export PATH=/home/dell/.local/bin/:$PATH

Insert image description here

update successed!

2. Install pygame numpy

pip install --user pygame numpy

3. Install Carla

Select B. Package installation
Insert image description herePackage download address

Insert image description here
Download the first one and extract it to the home directory after the download is complete.
Insert image description here

# 按照官方文档运行命令
cd ~/CARLA_0.9.13/
./ImportAssets.sh

4. Install carla python library & other dependencies

pip install carla==0.9.13
sudo apt install libomp5

5. Start the carla simulation environment

cd ~/tools/CARLA_0.9.13
./CarlaUE4.sh

Guess you like

Origin blog.csdn.net/cwg213_code/article/details/131399520