Pyenv – Install Multiple Python Versions for Specific Project

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Aaron Kili

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

10 Responses

  1. jaboneros says:

    The Debian packages specified in this article was incomplete; I was getting a “module not found: ctypes” when trying to install Python 3.7.3 on MX Linux 18.2 – Continuum.

    Fix:

    $ sudo apt-get install libffi-dev
    

    The full syntax on pyenv website: https://github.com/pyenv/pyenv/wiki#suggested-build-environment:

    $ sudo apt-get update; sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev

  2. Dan Searles says:

    Installed 3.6.8, but really wanted it’s pip3. pip --version and pip3 --version both give same result:

    pip 18.1 from /home/searles/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pip (python 3.6)

    so left wondering if it’s correct.

    Then finally, wanted to ‘python3.6 -m pip3 install typing‘ – but that gives “No module named pip3” !

  3. Fen says:

    Awesome install guide for pyenv. In my humble opinion – just the perfect level of detail and context along with the install commands. Many thanks!

  4. Javid says:

    There is a typo in the command at 5th step. It should be “pyenv install -l” instead of “pynev install -l“.

  5. xABBAAA says:

    piton, is nice if you like to do some things, but I prefer Qt and C++, that might just be the reason for my concern is on the ethics of it, after all…

    by, live long and prosper…..

  6. Hari says:

    You might want to add libffi-dev as one of the required package for installing Python 3.7.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.