简体   繁体   English

如何在 google colab 中安装 carla 模拟器

[英]how to install carla simulator in google colab

I am trying to run carla simulator in a google colab with python jupyter notebook.我正在尝试使用 python jupyter 笔记本在 google colab 中运行 carla 模拟器。 I followed the guide and I executed the following commands我按照指南执行了以下命令

!pip install pygame
!pip install numpy
!sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 304F9BC29914A77D
!sudo add-apt-repository "deb [arch=amd64 trusted=yes] http://dist.carla.org/carla-0.9.8/ all main"
!sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DB53A429E64554FC &&
!sudo add-apt-repository "deb [arch=amd64 trusted=yes] http://dist.carla.org/carla-0.9.7/ all main"
!sudo apt-get update
!sudo apt-get install carla

however when I tried to run it I got an error但是当我尝试运行它时出现错误

Package carla is not available, but is referred to by another package. Package carla 不可用,但被另一个 package 引用。 This may mean that the package is missing, has been obsoleted, or is only available from another source这可能意味着 package 缺失、已过时或仅可从其他来源获得

E: Package 'carla' has no installation candidate E: Package 'carla' 没有安装候选

how can I install the carla simulator on google colab?如何在 google colab 上安装 carla 模拟器?

You can try to use this repo: https://github.com/MichaelBosello/carla-colab你可以尝试使用这个仓库:https://github.com/MichaelBosello/carla-colab
There is google colab notebook with pre-installed Carla.有预装 Carla 的 google colab notebook。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM