- pyenv curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash follow instructions and add PYENV_ROOT
edit ~/.bashrc
Add this to end
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
For stability it requires libs
sudo apt-get install curl ca-certificates build-essential zlib1g-dev libbz2-dev libssl-dev libreadline-dev libncurses5-dev libsqlite3-dev libgdbm-dev libdb-dev libexpat-dev libpcap-dev liblzma-dev libpcre3-dev libffi-dev
apt install python3-pip python3-openssl python3.8-venv
- python 3.7 (aws version for the moment)
pyenv install 3.7.10
python -V # 3.7.10
pyenv virtualenv 3.7.10
pyenv virtualenv 3.7.10 py37_10
# OR
# python -m venv .venv
pyenv activate py37_10
pip install -r requirements.txt
- run
python s.py eu-central-1 secret/name
# or
# AWS_PROFILE=cp python s.py eu-central-1 secret/name