Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'carla' #33

Open
HongYegg opened this issue Mar 18, 2021 · 2 comments
Open

ModuleNotFoundError: No module named 'carla' #33

HongYegg opened this issue Mar 18, 2021 · 2 comments

Comments

@HongYegg
Copy link

(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?

@Tangzj2020
Copy link

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

@NathanGavenski
Copy link

You have to install carla

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants