fix venv setup
This commit is contained in:
parent
e9039f2b01
commit
48acaebc54
1 changed files with 10 additions and 0 deletions
10
setup-venv.sh
Normal file → Executable file
10
setup-venv.sh
Normal file → Executable file
|
@ -4,9 +4,14 @@
|
||||||
python3.10 -m venv venv310
|
python3.10 -m venv venv310
|
||||||
source venv310/bin/activate
|
source venv310/bin/activate
|
||||||
|
|
||||||
|
# Make sure colcon doesn't try to index the venv310 directory
|
||||||
|
touch venv310/COLCON_IGNORE
|
||||||
|
|
||||||
# Install Python packages
|
# Install Python packages
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip install \
|
pip install \
|
||||||
|
cython \
|
||||||
|
pathlib2 \
|
||||||
numpy \
|
numpy \
|
||||||
matplotlib \
|
matplotlib \
|
||||||
ipympl \
|
ipympl \
|
||||||
|
@ -14,8 +19,13 @@ pip install \
|
||||||
jupyterlab-widgets \
|
jupyterlab-widgets \
|
||||||
ipykernel
|
ipykernel
|
||||||
|
|
||||||
|
pip3 install --upgrade pytest colcon-common-extensions setuptools
|
||||||
|
|
||||||
# Register venv310 as Jupyter kernel
|
# Register venv310 as Jupyter kernel
|
||||||
python -m ipykernel install --user --name=venv310 --display-name="Python 3.10 (venv310)"
|
python -m ipykernel install --user --name=venv310 --display-name="Python 3.10 (venv310)"
|
||||||
|
|
||||||
|
# Make sure the venv310 is activated when starting a new shell
|
||||||
|
echo "source /workspaces/ROS-Dynamic-Executor-Experiments/venv310/bin/activate" >> /root/.bashrc
|
||||||
|
|
||||||
echo "Setup complete! Activate with: source venv310/bin/activate"
|
echo "Setup complete! Activate with: source venv310/bin/activate"
|
||||||
echo "Then start JupyterLab with: jupyter lab --ip=0.0.0.0 --port=8888 --allow-root"
|
echo "Then start JupyterLab with: jupyter lab --ip=0.0.0.0 --port=8888 --allow-root"
|
Loading…
Add table
Add a link
Reference in a new issue