carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.39k stars 3.7k forks source link

carla installation: make PythonAPI error #7914

Open xieran1994 opened 4 months ago

xieran1994 commented 4 months ago

I meet an error when 'make PythonAPI' in Ubuntu 22.04.

Setup.sh: Building rpclib with libc++. CMake Error at CMakeLists.txt:2 (project): Running

'/usr/local/bin/ninja' '--version'

failed with:

Traceback (most recent call last): File "/usr/local/bin/ninja", line 15, in from pkg_resources import load_entry_point

ImportError: No module named pkg_resources

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! make: *** [Util/BuildTools/Linux.mk:142: setup] Error 1

GoodarzMehr commented 4 months ago

pip install setuptools may help. I recommend following the guide and installing all the prerequisites before running make PythonAPI.

xieran1994 commented 4 months ago

pip install setuptools may help. I recommend following the guide and installing all the prerequisites before running make PythonAPI.

yes, I followed the guide and installed setuptool with recommanded version, but it doesn't work. Don't know if it is because i'm using a sub account in linux, python pip doesn't in the right place.

MarcelPiNacy-CVC commented 3 months ago

Hi,

Which branch of CARLA are you using?