Install Multiple Python Versions on Raspberry Pi

Sam Westby Tech
Sam Westby Tech
This video teaches you how to install multiple python versions on your Raspberry Pi using pyenv. Let me know if you have any que ...
This video teaches you how to install multiple python versions on your Raspberry Pi using pyenv. Let me know if you have any questions or requests for future tutorials!

Subscribe to my channel :)    https://www.youtube.com/samwestbytech...

If you prefer reading, here's a blog post with the instructions: https://www.samwestby.com/tutorials/r...


MY CAMERA: https://amzn.to/3reaDlK
MY MICROPHONE: https://amzn.to/3fhunSN
MY LIGHTING: https://amzn.to/3dHll1i

FREE Amazon Prime: https://amzn.to/3ren80W
FREE Audible Plus: https://amzn.to/3xYzJsR

RASPBERRY PI 4: https://amzn.to/3BC4i9I
RASPBERRY PI PICO START KIT: https://amzn.to/3REvjis
RASPBERRY PI CAMERA V2: https://amzn.to/3QFp90c
ELECTRONICS COMPONENT STARTER KIT: https://amzn.to/3qB23xg
ASSORTED SENSOR KIT: https://amzn.to/3U7M7zV
USB SPEAKER: https://amzn.to/3La4foK
USB 1080P WEBCAM: https://amzn.to/3Lq0OL7

I may earn commission if you purchase from the links above

INSTRUCTIONS and TIMESTAMPS:
0:00 Intro

0:32 (0) Access the terminal

0:58 (1) Run the easy installer
curl https://pyenv.run | bash

1:10 (2) Add pyenv to .bashrc:
Edit the .bashrc with the command
   sudo nano ~/.bashrc
Add the following three lines to the botton of the .bashrc file:
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"

1:45 (3) Restart the terminal
exec $SHELL

1:54 (4) Install system packages
sudo apt-get install --yes libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libgdbm-dev lzma lzma-dev tcl-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev wget curl make build-essential openssl

2:11 (5) Update pyenv
pyenv update

2:22 (6) Install python versions
pyenv install --list
pyenv install ~~Your python version~~

2:59 (7) Set python verion
pyenv local 3.7.12
or
pyenv shell 3.7.12
or
pyenv global 3.7.12

4:39 (8) To uninstall (in case you followed along and changed your mind)vi
rm -fr ~/.pyenv
Remove lines from .bashrc (sudo nano ~/.bashrc)

4:45 Outro









Some sounds from freesound.org

همه توضیحات ...