Does webots support python3? If yes, how can I change the interpreter?
I need to use python3 in order to load other packages that I need, ros, pandas, numpy.
Does webots support python3? If yes, how can I change the interpreter?
I need to use python3 in order to load other packages that I need, ros, pandas, numpy.
Yes, Webots supports Python 3:
https://cyberbotics.com/doc/guide/using-python
Webots comes with several precompiled Python libraries (at least one for Python 2 and one for Python 3, depending on your OS). It's recommended to install the same Python version.
You can change the Python command once for all from the Webots Preferences (In the "General" tab), or per controller by defining a config.ini
file in the controller directory (reference: https://cyberbotics.com/doc/guide/controller-programming#languages-settings), for example:
[python]
COMMAND = python3
Once setup, you can install extra packages using pip: https://cyberbotics.com/doc/guide/using-python#libraries