Add 3_intall_python_3.10.sh
This commit is contained in:
16
3_intall_python_3.10.sh
Normal file
16
3_intall_python_3.10.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
# one-time pyenv (user) install
|
||||
sudo apt install -y build-essential libssl-dev zlib1g-dev libbz2-dev \
|
||||
libreadline-dev libsqlite3-dev curl libffi-dev libncursesw5-dev \
|
||||
xz-utils tk-dev libxml2-dev libxmlsec1-dev liblzma-dev
|
||||
curl https://pyenv.run | bash
|
||||
|
||||
# init for current shell
|
||||
export PATH="$HOME/.pyenv/bin:$PATH"
|
||||
eval "$(pyenv init -)"
|
||||
eval "$(pyenv virtualenv-init -)"
|
||||
|
||||
pyenv install 3.10.14
|
||||
pyenv virtualenv 3.10.14 httprd310
|
||||
pyenv local httprd310 # or: pyenv activate httprd310
|
||||
python -m pip install -U pip
|
||||
[ -f requirements.txt ] && python -m pip install -r requirements.txt
|
||||
Reference in New Issue
Block a user