I have a ROS package that has dependencies on various python and ROS libraries. Is it possible to provide a script in python that can install conda, ros2 and other python packages? If possible could anyone please help me giving a template .py file on how I can install conda and other python packages using conda?
1 Answer
You can use os.system:
import os
cmd="""ls -l"""
os.system(cmd)
1 Comment
Skanda
hello, I am trying to install ROS2 (index.ros.org/doc/ros2/Installation/Crystal/…). With os.system("xxx") everything works but not commands including CHOOSE_ROS_DISTRO (3 commands in the above link). Why is that?
subprocessmodule.