<div dir="ltr"><div class="gmail_default" style="font-size:xx-large">Various versions of Python can be used in Linux.</div><div class="gmail_default" style="font-size:xx-large"><br></div><div class="gmail_default" style="font-size:xx-large">These instructions were for Slackware, but I suppose they work well in other distributions.</div><div class="gmail_default" style="font-size:xx-large"><br></div><div class="gmail_default" style="font-size:xx-large"><br><br>Install pyenv as root:<br>1. cd /root<br>2. curl -L <a href="https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer">https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer</a> | bash<br><br>update your .bashrc (or create it if not exists) and add this:<br><br>export PATH=&quot;$HOME/.pyenv/bin:$PATH&quot;<br>eval &quot;$(pyenv init -)&quot;<br>eval &quot;$(pyenv virtualenv-init -)&quot;<br><br>load the new .bashrc with source .bashrc<br><br>now install the python version that you want like:<br><br>pyenv install 3.7.2 (you can have multiple versions installed at the same time)<br>(you can check for the available versions with: pyenv install --list)<br><br>Switch to the new version with:<br><br>pyenv global 3.7.2 and run slpkg.<br>When you finish with it you can switch back to your original python with:<br><br>pyenv global system<br><br>And finaly check for the available python versions in your system with:<br><br>pyenv versions (the first &#39;system&#39; means the python that is installed by your system)<br><br>For example this is from mine:<br><br>root@lab:~#  pyenv versions  <br>  system<br>  3.1.2<br>  3.5.5<br>* 3.7.2 (set by /root/.pyenv/version)<br><br>References: <a href="https://github.com/pyenv/pyenv">https://github.com/pyenv/pyenv</a></div><div class="gmail_default" style="font-size:xx-large"><br></div><div class="gmail_default" style="font-size:xx-large">It seems that pyenv only reports the python versions installed into it.</div><div class="gmail_default" style="font-size:xx-large"><br></div><div class="gmail_default" style="font-size:xx-large">My system python is: Python 2.7.17 <br></div><div class="gmail_default" style="font-size:xx-large"><br></div><div class="gmail_default" style="font-size:xx-large">73</div><div class="gmail_default" style="font-size:xx-large">David N1EA</div><div class="gmail_default" style="font-size:xx-large"><br></div></div>