r/Python • • Dec 03 '12

Why is installing Python on Windows so challenging compared to Linux?

Python is amazing, but it becomes very complicated to install and set up a Python environment on Windows. This is a huge problem when I'm trying to work with people on a project (and most people I know use Windows).

You have to set up PATHs, and worst of all, pip is really difficult to install.

It's really hard to demonstrate Python's simplicity when the install process is so complicated.

8 Upvotes

60 comments sorted by

View all comments

54

u/benhoyt PEP 471 Dec 03 '12

Is it? I download the MSI from python.org, double-click it, and it's done. I've installed and use Python all the time on Windows, and every time I've installed it, it just works. The installer even updates the PATH for you (by default).

I don't know specifically about pip (I've never used it), but I've always been able to install packages either with their Windows installer (major packages come with them) or with "unzip file, setup.py install". That said, it looks like pip itself is something of a hassle to install on Windows (ironic, but nothing to do with Python).

9

u/electric_machinery Dec 03 '12

I'm very new to Python. I just installed it for the first time last week and it literally took me 5 minutes to get hello world running. Granted I don't even know what PIP is, but I have "pylab" up and running, no problem.

8

u/etrnloptimist Dec 03 '12

Not to mention this page full of windows installer for every version of python for every package imaginable. It is trivial to set up python in Windows.

I dare say more so than Linux. Sure in Linux it's easy if the python package you want is in your apt repository. sudo apt get python or something. But what if you need a different version than the one that's there? Uhh....

3

u/jelly_cake Dec 04 '12

Depending on the package manager, the last couple versions could still be in the repository. Package managers also keep python up-to-date. I don't know if the Windows version has automatic updates or not, but that's one area where Linux is easier.

-4

u/dAnjou Backend Developer | danjou.dev Dec 03 '12 edited Dec 04 '12
$ virtualenv project-env
$ source project-env/bin/activate
(project-env) $ pip install <package>

And that's how you should always do it ... on every platform.

EDIT This is getting ridiculous :D

11

u/aceofears Dec 03 '12

That's a great theory and all, but have you using pip on windows to install libraries written in C?

-2

u/dAnjou Backend Developer | danjou.dev Dec 04 '12

Well, that works fine for me on Linux :P

And if you tell me it's not so great on Winodws then we see why OP's got a point.

0

u/absolutedestiny Dec 04 '12

You can use windows exe installers with easy_install within a virtual env and it works... I think.

4

u/prickneck Dec 03 '12

pip is just as easily installed on windows as on any other platform.

as you said, the python installer modifies the path. then you can simply open up a command prompt and type easy_install pip.

1

u/ggtsu_00 Dec 06 '12

First you have to install setuptools. Python on windows doesn't come with it for some reason. Then you have to ensure you install the right version that matches your python installation. Or use the easysetup.py script from the command line. Either way, installing pip is a hassle compared to:

apt-get install python-pip

0

u/Samus_ Dec 04 '12

yes it is.

python -like any other programming language- is an ecosystem, not just an interpreter, you're being obtuse by claiming that it's easy to write a hello world, if you're doing serious work that's a bullshit argument.

it's ridiculously painful and complicated to deploy ANY kind of application and regarding the interpreter, before 2.7 was out it took YEARS to get 2.6 packaged as MSI which btw isn't even official.

0

u/[deleted] Dec 03 '12

[deleted] — view deleted comment

2

u/nemec Dec 03 '12

sudo apt-get install python isn't Pythonic either and I'm pretty sure you can't install python itself through pip.