From 87a992c6dd33d409d18d943a362bbc213c283a82 Mon Sep 17 00:00:00 2001 From: Daniel Parra Date: Sun, 29 Dec 2024 22:00:02 +0000 Subject: [PATCH] Noticed that when I set up ubuntu on virtual machine that it did not come pre installed with pip so i included a check in the install script --- scripts/install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 5e90b94..76bcc9c 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -131,6 +131,12 @@ mil_system_install --no-install-recommends \ wget \ vim +# Before installing with pip, +# Check if pip is already installed and if not install pip. +if ! command -v pip &> /dev/null; then + sudo apt-get update && sudo apt-get install -y python3-pip +fi + # Turn on breaking system packages in pip (set to 0 by default in noble) # Generally, our packages shouldn't break the system, but we will continue to monitor # this for the future. ROS2 and rosdep have a hard time with virtual environments,