Tested on:RPi3; Raspbian Stretch
Prerequisites:Raspberry Pi with Raspbian Jessie and internet connection (see steps 1-7 in the Introduction)

Pyenv for Python version management on Raspbian Stretch

Using different versions of Python on a single machine causes complications frequently, for example by missing dependencies. PyEnv is a promising solution to this problems since it allows installing and keeping different Python versions including dependencies and managing virtual environments.

Enter in the terminal

Enter the following for installing a specific Python version:

The installation takes a while. Now, show all installed versions by entering

A specific Python version can be linked to a directory:

Output: Python 3.6.3
After leaving the directory, the system wide Python version is active again.

Output: Python 2.7.13
The following command sets the Python version for the whole system:

GitHub PyEnv: https://github.com/pyenv/pyenv

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.


Time limit is exhausted. Please reload CAPTCHA.