Hi Everyone,
In this video, I am going to show you how to install and run multiple python versions on Ubuntu by using pyenv. This can also be interpreted as using pyenv to install python
Commands:
Before that Please Subscribe: https://bit.ly/3NvZbdX
python3 --version
python --version
which python
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev \
libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl
curl https://pyenv.run | bash
sudo nano ~/.bashrc // sudo nano ~/.zshrc
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
Save and exit (ctrl + s; ctrl + x)
exec "$SHELL" # restart your terminal
pyenv install --list | grep " 3\.[678]"
pyenv install --list
pyenv install -v 3.9.13
pyenv install -v 3.8.13
pyenv versions
python --version
which python
pyenv global 3.9.13
pyenv versions
python --version
which python
pyenv uninstall 3.8.13
Important Links:
Invest/trade in India stock market: https://zerodha.com/?c=WJ5438&s=CONSOLE
My laptop: https://amzn.to/3641BgO
Second Monitor: https://amzn.to/3qIeF4X
Keyboard: https://amzn.to/3Ad7R3B
Mic: https://amzn.to/3yfIkVH
SSD: https://amzn.to/3hb4By7
External HDD: https://amzn.to/3wcMtYU
Amazon Prime Membership: https://amzn.to/3qDnahG
Audible subscription: https://amzn.to/2TweLQR
If you have suggestions for the next video please feel free to comment them down.
NOTE: We'll try to create better videos, so stay tuned.
Thank you, everyone, for watching this video.
If you got any questions, do comment below.
Do like, subscribe and share more such videos on Django and Django Rest Framework.
Tune in Again!