ROS-Dynamic-Executor-Experi.../setup-venv.sh

26 lines
651 B
Bash
Raw Normal View History

#!/bin/bash
2025-04-29 09:31:19 +02:00
# Creates and sets up your Python 3.8 venv
python3.8 -m venv venv38 --system-site-packages --symlinks
source venv38/bin/activate
2025-03-29 13:07:15 +01:00
# Make sure colcon doesn't try to index the venv310 directory
2025-04-29 09:31:19 +02:00
touch venv38/COLCON_IGNORE
2025-03-29 13:07:15 +01:00
# Install Python packages
pip install --upgrade pip
pip install \
2025-03-29 13:07:15 +01:00
cython \
pathlib2 \
numpy \
matplotlib \
ipympl \
jupyterlab \
jupyterlab-widgets \
ipykernel
2025-04-29 09:31:19 +02:00
pip install --upgrade pytest colcon-common-extensions setuptools
2025-03-29 13:07:15 +01:00
# Make sure the venv310 is activated when starting a new shell
2025-04-29 09:31:19 +02:00
echo "source /workspaces/ROS-Dynamic-Executor-Experiments/venv38/bin/activate" >> /root/.bashrc