Thread: Is pyenv the best way to use multiple python version plus virtualenv?

  1. #1
    Registered User
    Join Date
    Feb 2017
    Posts
    1

    Is pyenv the best way to use multiple python version plus virtualenv?

    Hey,

    I was using virtualenv only, but I installed pyenv + virtualenv following this tutorial.

    I want to ask you how do you use python2 and python 3when using multiple virtualenv.

    thanks

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    I use pyenv. If you are on Linux you don't touch or use the base python installation that comes with the distro. You just ignore it entirely and for all purposes. With pyenv I just then install both python 2 and 3 on my local folder, on any of the versions I wish, including anaconda and other python distributions if you so wish. As you know, pyenv lets you install these directly without the need to go to their respective websites and do a download, and manages all of them admirably.

    On windows it is much easier, because thankfully the operating system does not depend on python at all. So you can install and manage any python version independently and without the need for virtualenv solutions. And you can always use 'pip freeze' to maintain your project python version and its dependencies.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multiple versions of Python on a Linux machine
    By Mario F. in forum Tech Board
    Replies: 9
    Last Post: 06-13-2016, 04:21 AM
  2. Difference between Python 2 and Python 3?
    By OMG its Ali in forum Tech Board
    Replies: 3
    Last Post: 03-18-2014, 08:06 PM
  3. Making my own version of the scanf() version
    By Jamie_Edwards in forum C Programming
    Replies: 4
    Last Post: 04-30-2012, 09:46 AM
  4. anyone here knows Python ?
    By black in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 09-11-2002, 08:49 AM
  5. Python
    By Xterria in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 05-05-2002, 04:08 PM

Tags for this Thread