Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation and switching of multiple python versions #728

Open
asfaltboy opened this issue Jul 10, 2016 · 4 comments
Open

Installation and switching of multiple python versions #728

asfaltboy opened this issue Jul 10, 2016 · 4 comments

Comments

@asfaltboy
Copy link

I saw that there is little mention in the guide of how to install and handle multiple python versions. I wrote this short guide gist on using PyEnv for myself and my friends, and was wondering if this is something that has place in the guide.

If so, please let me know how it should be modified/improved prior to integration to the guide.

@pengyuchu
Copy link

You can build a branch, and pull a Request to the Author.

@arpit1997
Copy link

I suppose that above @asfaltboy can be accomplished more easily by using virtualenv. It provides a standalone container or environment in which you can run any python application without making conflicts with the system. refer to this for more details and instructions on askubuntu thread

I suppose there is no need of a new section

@asfaltboy
Copy link
Author

asfaltboy commented Sep 25, 2016

@arpit1997 does virtualenv allow you to install and switch to another python version? E.g install python 2.7 and 3.5 alongside each other and switch easily between multiple versions?

While it's true one can download multiple versions of python on a system and then initiate a virtualenv using a given python version (rather than the default), the process is not "touch-and-go" on most systems. It often requires the knowledge of the make altinstall option and others (e.g --prefix=/my/custom/path) to achieve this. See for example digitalocean's tutorial for centos.

The only caveat I have with my own suggestion is that pyenv may not be a canonical tool, and not everyone may agree with it's "philosophy". However this guide is already pretty opinionated, and using pyenv is in my opinion the easiest way to achieve multi-python installation.

@heyhimansh
Copy link

You can build a branch as per number of python version and pull a Request to the Author so it allows you to switching of multiple python versions.
: )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants