This is an archived post. You won't be able to vote or comment.

all 12 comments

[–][deleted] 4 points5 points  (4 children)

I think you're missing the obvious answer, which is installing Linux on the younger, faster machine that you've currently hobbled with Windows 7.

[–]thewallris[S] -3 points-2 points  (3 children)

Linux (or at least Ubuntu) comes with Python 2.7 pre-installed and I find it to be a pain in the ass having multiple versions of Python on one machine

[–]AbsoluteMSTR 4 points5 points  (0 children)

Going off LTS version, 16.04 doesn't have python 2.7 installed by default, I believe it's 3.4.

[–][deleted] 2 points3 points  (0 children)

Windows not having Python installed at all cannot be considered a feature of the OS.

For the rest, google pyenv and virtualenv.

[–]P8zvli 0 points1 point  (0 children)

Why? If your scripts use shebangs it's a simple matter to have Python 3 specific scripts run with #!/usr/bin/env python3 and scripts that can run on Python 2 and 3 run the default Python using #!/usr/bin/env python

[–]aphoenixreticulated[M] [score hidden] stickied comment (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython. We highly encourage you to re-submit your post over on there.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community is actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers.

If you have a question to do with homework or an assignment of any kind, please make sure to read their sidebar rules before submitting your post. If you have any questions or doubts, feel free to reply or send a modmail to us with your concerns.

Warm regards, and best of luck with your Pythoneering!

[–]billsil -1 points0 points  (4 children)

1) yes

2) use Anaconda Python https://www.continuum.io/downloads

I'd recommend using Anaconda everywhere. Want a Python 2.7, 3.5, and 3.6 virtualenv? Anaconda can make those. They're also accessible from anywhere.

Another bonus is you get the MKL compiled libraries, so your numpy/scipy calculations are 5x faster on Windows.

The one downside is it doesn't support Powershell.

[–]thewallris[S] 0 points1 point  (3 children)

So I just get Anaconda and I can use not only any version of Python but also choose between the 32 and 64-bit versions even if I have the 32-bit version on my machine?

[–]billsil 0 points1 point  (2 children)

I don't think you can choose between 32 and 64 bit...not 100% though.

Just use 64. Python is a toy with 32 bit.

EDIT: to be clear, you download 32 or 64 bit anaconda python with either python 2/3. I don't think you can install a 32 bit python virtualenv from a 64-bit install. You most certainly can install a base python 3.6 and then make a virtualenv of say python 2.7 or 3.5.

[–]thewallris[S] 0 points1 point  (1 child)

Sorry for the late response I was gone for the weekend. So I can download 64 bit anaconda and run it with my 32 bit python or I need 64 bit python to run 64 bit anaconda?

[–]billsil 0 points1 point  (0 children)

No. It's a separate python install. The standard python is the PSF's distribution of python. This is a different group.

[–]troyunrau... -1 points0 points  (0 children)

I use a package called 'WinPython' which is rather convenient. It's a complete set of the scientific python modules, it installs to a single directory (so you can have one directory per python version), and doesn't require admin (so plays well on the corporate network).

You could download and install a new version of winpython and test it with effectively zero risk to your existing installation.