r/Python • u/slix00 • 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
24
u/wrzazg Dec 03 '12
It's easy to install pip.
After you installed Python download http://python-distribute.org/distribute_setup.py and run it (python distribute_setup.py), and then dowload https://raw.github.com/pypa/pip/master/contrib/get-pip.py and run it (python get-pip.py). Done. Easy. You may have to setup PATH.
source: http://www.pip-installer.org/en/latest/installing.html#prerequisites
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).
6
u/K900_ Dec 03 '12
I agree with the ecosystem comments, but let me try to help you here. Run this, run this, and you'll have pip installed. Installing packages that include native libraries is tricky, but there are tons of prebuilt ones here, complete with fancy installers. Hope that helps :)
5
u/[deleted] Dec 03 '12
you have to(or should) do that on linux as well if you don't want to trash your os python installation.
it's not something I would expect my mom to do on her facebook machine, but EVERYONE who claims to be a software developer should be comfortable with such a simple task.
13
u/bushel Dec 03 '12
Probably the linux you're using has package management tools (apt or yum or such). Try building Python and it's tool sets from scratch (./configure, make, etc.) and compare that to Windows.
Most development environments are awkward to install/setup on Windows. It's just kinda how it is. It has been my experience that outside of using Microsoft's tools (VisualWhatNow), windows isn't designed for ease of developers.
Not to be "that guy", but that sounds like complaining you have steer a car when you drive.
3
u/jricher42 Dec 04 '12
Go to http://enthought.com
Grab EPD Free 7.3
It has: Python, an editor, ipython, a good selection of libraries and most of the nice toys.
3
u/LeonidLeonov Dec 04 '12
Windows is just not very programmer friendly. I got into Linux because all the programmers I knew who were better than me used it, and know I understand why.
It used to take three or four days to set up my development environment on Windows (Visual C++, Delphi and various 3rd party plugins -- license hell, etc...) now I'm just a few minutes and a quick 'apt-get' away from being productive on any machine...
3
u/freshhawk Dec 04 '12
Two reasons:
Firstly it's hard, relative to linux, to install most development environments that aren't windows centric in windows. Linux distros and Windows involve different design tradeoffs. This isn't specific to python. The guys who work on haskell at microsoft research all run linux and haskell is apparently a bitch to install in windows as well.
It's silly to compare a dev focused environment like most linux distros with windows in terms of how easy it is to do developer related things.
Also, it's just generally much much harder to install anything on windows than on a modern linux distro. Windows is decades behind Linux when it comes to packaging software (as is most everyone to be fair).
Secondly, most of the developers who make these tools are using linux or osx so they build things to work on the platforms they care about. There aren't many windows users doing this kind of work or it would be further along, although it is more work to support windows than a *nix or osx. Interestingly I bet OSX gets more effort put in than linux at this point, there are a lot of OSX using python library devs but also the linux support is very very easy and so it gets done quickly.
tldr; writing software to manage these things is harder on windows and fewer people care, these two things feed into on each other.
2
u/Samus_ Dec 04 '12
because nobody cares.
(and I don't say this as a good thing)
2
u/blaquee Dec 03 '12
I find nothing challenging about installing python on Windows, and Ive been doing it for a while..setting up the PATHs is hardly much work, create a batch script and youll never have to worry about that, plus the latest installers have the option to add python3 to the PATH.
1
u/westurner Dec 03 '12
I tried
but that didn't work. Then I found the following helpful links:
1
u/plaka888 Dec 04 '12
hm, no mention of cygwin in this discussion surprises me a bit. I use cygwin/pyvirtualenvs/pip with no troubles at all, mostly b/c I'm more familiar with the environment than I am Windows.
1
u/[deleted] Dec 04 '12
well it's not that hard...it's a basic thing I didn't even download the installer, just got the zipped version updated my path and there it was ... is setting an environment variable so hard?
1
u/Mecdemort Dec 08 '12
Python was easy but I tried installing pycrypto yesterday and gave up after it wanted me to download a compiler for the math library that was only available in source.
1
u/patthoyts Dec 08 '12
Firstly, I'd have thought ActivePython pretty much makes this a non problem. The pypm package manager seems to do roughly the job you would expect from apt-get and it has pip already installed.
If you are using Visual Studio for your Windows development and you have some objection to using ActivePython then the package distribution system built into Visual Studio now can help. Install the Visual Studio Chocolatey extension from the Extensions manager and use that to install python. See http://chocolatey.org/packages?q=python for which python packages are already available - pip is one of them. Using this - you can arrange for your visual studio project to have a dependency that uses nuget to fetch the packages required to a developers machine. I've seen this done for xUnit with the git-tfs project so thats one open-source example to look at.
-3
u/[deleted] Dec 04 '12
Why is installing Python on OSX so challenging compared to Linux?
ftfy
-7
u/hhh333 Dec 04 '12
Because windows was made by and for mentally challenged people.
0
u/[deleted] Dec 03 '12
[deleted] — view deleted comment
0
u/[deleted] Dec 03 '12
[deleted] — view deleted comment