minor edits on notes
This commit is contained in:
@@ -1,46 +1,42 @@
|
||||
# pyenv install
|
||||
# pyenv installation
|
||||
|
||||
## install
|
||||
## pyenv
|
||||
|
||||
nice to have:
|
||||
1. Install pyenv
|
||||
|
||||
```bash
|
||||
sudo apt install python-is-python3
|
||||
```
|
||||
```bash
|
||||
curl https://pyenv.run | bash
|
||||
```
|
||||
|
||||
```bash
|
||||
curl https://pyenv.run | bash
|
||||
```
|
||||
2. setup zsh
|
||||
|
||||
## setup zsh
|
||||
add the following to `.zshrc`:
|
||||
|
||||
add the following to `.zshrc`:
|
||||
```bash
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
eval "$(pyenv init -)"
|
||||
```
|
||||
|
||||
```bash
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
eval "$(pyenv init -)"
|
||||
```
|
||||
## python installation
|
||||
|
||||
## pyenv install
|
||||
1. prerequisites
|
||||
|
||||
prerequisites:
|
||||
```bash
|
||||
sudo apt update
|
||||
sudo apt install build-essential libssl-dev zlib1g-dev \
|
||||
libbz2-dev libreadline-dev libsqlite3-dev curl git \
|
||||
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev \
|
||||
libffi-dev liblzma-dev python3-pip
|
||||
```
|
||||
|
||||
```bash
|
||||
sudo apt update
|
||||
sudo apt install build-essential libssl-dev zlib1g-dev \
|
||||
libbz2-dev libreadline-dev libsqlite3-dev curl git \
|
||||
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev \
|
||||
libffi-dev liblzma-dev python3-pip
|
||||
```
|
||||
2. install
|
||||
|
||||
install:
|
||||
```bash
|
||||
# using python 3.12.7 as an example
|
||||
pyenv install 3.12.7
|
||||
|
||||
```bash
|
||||
# using python 3.12.7 as an example
|
||||
pyenv install 3.12.7
|
||||
|
||||
# optional
|
||||
pyenv global 3.12.7
|
||||
pyenv versions
|
||||
```
|
||||
# optional
|
||||
pyenv global 3.12.7
|
||||
pyenv versions
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user