cannot import name 'VehicleLightState' from 'carla'


C:\Users\admin\CARLA\carla\PythonAPI\examples>python spawn_npc.py -n 20
Traceback (most recent call last):
File “C:\Users\admin\CARLA\carla\PythonAPI\examples\spawn_npc.py”, line 26, in
from carla import VehicleLightState as vls
ImportError: cannot import name ‘VehicleLightState’ from ‘carla’ (…\carla\dist\carla-0.9.11-py3.9-win-amd64.egg\carla_init_.py)

Carla 0.9.11 was built on Windows, and the above error was reported when running python spawn_npc.py -n 20*. Is there a way to solve it.