Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Include Python 2 and Python 3? #2

Closed
bsweger opened this issue Mar 2, 2015 · 7 comments · Fixed by #5
Closed

Include Python 2 and Python 3? #2

bsweger opened this issue Mar 2, 2015 · 7 comments · Fixed by #5

Comments

@bsweger
Copy link
Contributor

bsweger commented Mar 2, 2015

Not sure what other Python devs at 18F do, but I installed Python 2 and Python 3 on my laptop. I find it handy to default to 3 with an option to point new virtualenvs to Python2 in specific cases.

@konklone
Copy link
Contributor

konklone commented Mar 2, 2015

Strong recommendation for using pyenv to manage multiple versions, rather than system installation. It keeps your system dependencies separate from development dependencies, eliminates the need for sudo to manage language use, and plays nicely with virtualenv and virtualenvwrapper.

@bsweger
Copy link
Contributor Author

bsweger commented Mar 2, 2015

I have python 2 & 3 installed via homebrew and haven't had to manage anything with sudo. You can specify a specific Python version when running mkvirtualenv, and that seems to be working.

That said, if pyenv makes it easier to manage Python 2/3 with no drama when working with virtualenvwrapper, that would be swell.

@monfresh
Copy link
Contributor

monfresh commented Mar 2, 2015

I don't have a strong opinion on this since I'm new to Python, but if Homebrew works, then that seems to be the easiest option and wouldn't require installing an additional tool. But I'd like to hear from more Python users. @jackiekazil, @kaitlin, @khandelwal @cmc333333 ?

@konklone
Copy link
Contributor

konklone commented Mar 2, 2015

I know @seanherron's had some experience, as well.

@kaitlin
Copy link

kaitlin commented Mar 2, 2015

For me, pyenv is way overkill and a solution in search of a problem. I use brew to install py2 and py3 and similar to @bsweger, I default to py3 most of the time.

@jackiekazil
Copy link

jackiekazil commented Mar 2, 2015 via email

@monfresh
Copy link
Contributor

monfresh commented Mar 2, 2015

The people have spoken. I will install py3 via brew in the default script.

monfresh added a commit that referenced this issue Mar 3, 2015
Since `virtualenvwrapper` requires sourcing before the `mkvirtualenv` command can be used, this now makes 2 commands that need to be sourced after the script ends. RVM is the other one.

Instead of adding another command to the `bash mac` script, I've opted to quit Terminal after the script ends. That way, when Terminal is relaunched, everything will be working.

Closes #2 and #3.
monfresh added a commit that referenced this issue Mar 3, 2015
Since `virtualenvwrapper` requires sourcing before the `mkvirtualenv` command
can be used, this now makes 2 commands that need to be sourced after the
script ends. RVM is the other one.

Instead of making the installation command even longer, I've opted to add
instructions to quit and relaunch Terminal after the script ends.

Closes #2 and #3.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants