add python image
This commit is contained in:
19
python/install-packages.sh
Normal file
19
python/install-packages.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
sudo apt-get update && sudo apt-get install -y \
|
||||
python3-pip python3-venv
|
||||
|
||||
# Install Poetry
|
||||
curl -sSL https://install.python-poetry.org | python3 -
|
||||
|
||||
# Ensure Poetry is in PATH
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
# Configure Poetry to use in-project virtual environments
|
||||
poetry config virtualenvs.in-project true
|
||||
|
||||
sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/*
|
||||
|
||||
echo "Poetry and venv installed successfully!"
|
||||
Reference in New Issue
Block a user