gym-carla icon indicating copy to clipboard operation
gym-carla copied to clipboard

ModuleNotFoundError: No module named 'carla'

Open HongYegg opened this issue 3 years ago • 2 comments

(gym_carla) why@why-why:~/Downloads/gym-carla$ python test.py Traceback (most recent call last): File "test.py", line 10, in import carla ModuleNotFoundError: No module named 'carla'

Ps:export PYTHONPATH=/home/why/CARLA_0.9.6/PythonAPI/carla/dist/carla-0.9.6-py3.5-linux-x86_64.egg How do I set environment variables?

HongYegg avatar Mar 18 '21 03:03 HongYegg

Hi,you can try this. PS:export PYTHONPATH=$PYTHONPATH:/home/why/CARLA_0.9.6/PythonAPI/carla/dist/carla-0.9.6-py3.5-linux-x86_64.egg

Tangzj2020 avatar Oct 28 '21 08:10 Tangzj2020

You have to install carla

pip install carla and it has to be the same version of your CARLA source

NathanGavenski avatar May 31 '22 20:05 NathanGavenski