Install pyenv dependencies:
Ubuntu:
sudo apt-get install build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev libffi-devMacOS:
brew install openssl readline sqlite3 xz zlib
```## Create Virtual Environments
```bash
pyenv virtualenv VERSION mltest
echo "mltest" > .python-versionInstall pyenv: curl https://pyenv.run | bash
Setup terminal integration in ~/.bashrc:
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"Restart your terminal
Install python (will take some time): pyenv install -v VERSION
The install might fail, so be prepared to troubleshoot
Run this to permanently set default version: pyenv global VERSION
Run python -V and make sure it's the right version
pyenv virtualenv VERSION mltest
echo "mltest" > .python-version