In some cases you may need to install python packages in a local virtual environment to use with your ROS packages.
To learn more about virtual environments you can find more info here.
wsr2, so we are going to be using this name throughout the tutorial.cd ~/wsr2
python3 -m venv --system-site-packages venv
source venv/bin/activate