when I run ~/starter_kit/rllib_example/run.py in VScode, it points out that
(py3) bash-3.2$ cd /Users/aaron/Desktop/BristolRobotics/DriveML/starter_kit ; env PYTHONIOENCODING=UTF-8 PYTHONUNBUFFERED=1 /Users/aaron/anaconda3/envs/py3/bin/python /Users/aaron/.vscode/extensions/ms-python.python-2019.10.44104/pythonFiles/ptvsd_launcher.py --default --client --host localhost --port 58701 /Users/aaron/Desktop/BristolRobotics/DriveML/starter_kit/random_example/run.py
bash: env: command not found
But, I can run this file in the terminal successfully. Is it something wrong with my VScode ?
Posted by: Team136 @ Nov. 9, 2019, 4:29 p.m.Yes, this looks like a problem with your VSCode setup, even if you do pass this configuration hurdle, we'd still recommend running all scripts from a terminal to avoid any problems with uninitialized environment variables, ie. VSCode may have troubles reading the SUMO_HOME variable if it doesn't load your bash profile correctly.
Posted by: HuaweiUK @ Nov. 9, 2019, 7:03 p.m.OK, I got it.
Thank you!