filmov
tv
Install Multiple Python Versions on Raspberry Pi

Показать описание
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!
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
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
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
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
Комментарии