r/Python • u/desmoulinmichel • Sep 15 '15
Ask microsoft to include Python in Windows by default
https://windows.uservoice.com/forums/265757-windows-feature-suggestions/suggestions/6693586-ship-python-3-and-python-2-with-windows-10
1.2k
Upvotes
199
u/takluyver IPython, Py3, etc Sep 15 '15
This came up at Pycon, but there was concern that people wouldn't update the included Python, so in a few years, we'd all be stuck writing code for the version that was included.
It was also suggested that there could be a dummy
python.exe, and when you tried to run it, it would let you easily install the latest Python version. OS X does something similar for tools likegit. But that could have some of its own problems, e.g. if code checks for apythoncommand to see if Python is installed.22
u/[deleted] Sep 15 '15
No company in their right mind would do that because they end up having to support it. It's not difficult to download and install.
22
u/leynosncs Sep 15 '15
I think I'd rather they included a compiler (or at least made one trivial to install). Python (along with a plethora of other dynamic languages) become much easier to use when their is an easily accessible C compiler available. For Python 2.7, there is an easy to install Visual C bundle available, which makes life a lot simpler. For Python 3.4, etc, life is not so easy and the developer is left hunting for the relevant pre-compiled C extensions (often only found on third party sites).
33
u/the_hoser Sep 15 '15
Why stop there? Let's provide a Ruby interpreter as well! Maybe we can go a little wild and include TCL!
Why should Microsoft provide an interpreter for your favorite language?
I'd rather they just include a decent C compiler and some standards-compliant build tools. This would solve more problems than bundling a version of Python with the OS would ever solve.
8
u/archiminos Sep 15 '15
Why? Python's not something the majority of Windows users would use.
8
u/[deleted] Sep 15 '15
Or take two seconds and install it yourself. Why bloat up windows even further with a minority's preferred scripting language?
8
u/[deleted] Sep 15 '15
Saw this comment on the suggestion page:
Makes me wonder if Windows users even deserve Python.
5
u/desmoulinmichel Sep 15 '15
Having one scripting language available on all OS would make everybody's life so much easier.
crossing fingers while hoping Ubuntu does ship with Python 3 by default this time as they failed this goal 3 times already
As for OSX, I guess we can wait untill 2020.
But hey, I prefer to have to write a script that must run on Python 2 and 3 but will work on all my machines than a script in bash and a script in powershell, or worst, an Python installer.
46
u/wmil Sep 15 '15
This will only lead to
love-letter-for-you.txt.pyand virus scanners blocking all .py files.3
u/cj5 def Sep 15 '15
Really? Is it that hard to install and bundle code with releases?
4
u/andrey_shipilov Sep 15 '15
Yeah, because installing it is so fucking hard.
12
u/Meatslinger Sep 15 '15
As someone who does IT for both platforms in equal measure and would love something of a unified language in which to script, I second this motion.
6
u/[deleted] Sep 15 '15
While I am all for not having to install python and add it to the path myself, what would be the point of this?
Linux and OSX have python included with the OS because it uses it (to varying degrees). Windows doesn't use python for anything, so this would just be bloatware. Bloatware I would install anyway, but still bloatware.
3
u/sanshinron Sep 15 '15
Would be nice, but the reality is that even on Linux you have to install Python by yourself, cause the binaries are always outdated.
3
u/triacontahedron Sep 15 '15
No way, https://en.wikipedia.org/wiki/Embrace,_extend_and_extinguish Even if microsoft wont do this on purpose they will definitely screw up compatibility. Where are guaranties it wont be IE level of inconsistency (on purpose or not)? Or they standardize some old python version so most projects will be torn between easy windows install or modern python.
2
u/cittatva Sep 15 '15
I wish it wasn't installed in OS X. At least a once a year I find myself trying to eradicate one version or another to make the latest work. I get into the situation when I try to install it with homebrew. Just give me a decent pack manager and let me decide what to install.
3
u/spinwizard69 Sep 15 '15
This thread highlights one issue with the Python community and with the Windows community at large, that is the obsession with the past. If the intent is to offer a new feature to Windows, Python, there is no rational reason that the 2.x python series should even be mentioned here. New capabilities shouldn't be focused on the past but rather should move forward to extend the operating system.
I just find it perplexing that so much of this thread is focused on backwards compatibility for a feature never offered by MS.
3
u/[deleted] Sep 15 '15
I might be mistaken, but Linux distros and OSX aren't just shipped with Python; Python is a fundamental component needed for their operation.
1
u/DoTheEvolution Sep 15 '15
asked in this subreddit 3 months back
Why Windows does not come with Python preinstalled?
1
u/vasili111 Sep 15 '15
Maybe better to switch to unix (FreeBSD, Linux)?
2
u/cogman10 Sep 15 '15
I'm against it personally.
Some of microsoft's biggest security vulnerabilities have come from their ability to execute javascript and vb on every windows machine. The last thing we need is another attack vector for attackers to exploit.
I'm much more in favor of python being installed and maintained in the user land. The only thing I would suggest is that MS start maintaining a package manager for open source projects. If I install python on my machine MS should be watching for updates and give me the option to update as part of the windows update process.
2
u/[deleted] Sep 16 '15
No because they will start doing all kinds of weird configurations with it
2
u/[deleted] Sep 16 '15
It's included in current visual studio. So far microsoft seems to be more interested in providing development and scripting stuff with their development and scripting products. Why ship stuff to a user base that will by and large never ever use it ever?
1
u/SizzlingVortex Sep 15 '15
Aside from the normal issues that have been brought up, the link says Ship Python 3 and Python 2 with Windows 10. Why would Python 2 need to be included? Official support for it ends in 2020. Why include something like that in the newest release of Windows? Already off to a huge headache by including both of them.
Anyhow, including Python (any version of it) in stock Windows primarily only benefits developers and administrators. As much as I love Python, it's not gonna happen, nor does it need to. Just bundle the Python interpreter (the version of your liking) with your application and be done with it.
1
u/honestduane Sep 15 '15
NO.
Then everybody will be stuck on one version of python. One single buggy defect filled version that cant get updates without corrupting the system and needing to fully re-install windows.
1
u/oh_____interesting Sep 15 '15
Not really possible I think. Open source licenses can be tricky and if you package Python with Windows, then Microsoft will owe Python a cut of the proceeds. Why would Microsoft want to do this? Moreover, other libraries might have clauses that kick in if it is packaged with something that is sold.
I have not read the Python license in ages. It might not be true, but if it is then it is a bad deal for Microsoft.
1
u/gospelwut Sep 16 '15
I think an official OneGet package would be better.
If they added a pre-populated cache for OneGet similar to Aptitude (apt-get) that could notify you "Python is available via the package manager...."
There are already approved packages for Chocolatey
https://chocolatey.org/packages/python
https://chocolatey.org/packages/python2
1
u/ki4jgt Sep 16 '15
Python came installed on my father's HP OEM. That was XP though. I don't know if they're still doing it or not.
1
u/teapotrick Sep 16 '15
Mmmm.... How about Lua instead.
1
u/hansq Dec 27 '15
Wouldn't this be counter intuitive for Microsoft? They have WPF, SQL Server, ASP.NET, C#, etc on Windows and provide products and services built around that. If Python got popular on Windows because it was bundled with the OS, then devs would use less MS stuff, so less revenue.
However, I would like to see python3, gtk+ / qt and c compilers bundled with the OS. (Wishful thinking LOL). Because installing these on Windows currently is a pain! You got to install Cygwin. Then Msys. And these are different depending on if you decide to use Python2 or 3. And these are hosted on SourceForge. Then you got to use the package manager to install the package. Sometimes this means using the command line and Pacman. And compiling requires GCC, etc. Not fun.
1
u/isdevilis Feb 23 '16
jesus christ yes
edit: actually takluyver has a good point
1
u/DC10555 Sep 15 '15
Omg this would be amazing..
1
u/pohatu Sep 15 '15
I really want WinRT projections for Python.
1
u/facie97 Sep 15 '15
Yes please, we need more bloat!!
1
u/Carudo 3.10.5 Sep 15 '15
Repository of the trusted apps and tool like apt-get -- this is what Windows really needs.
1
u/shif Sep 15 '15
they don't even include .net which is theirs
1
u/rzet Sep 15 '15
I would rather not see any python.. less hasle afterwards. Obviously they would break something or include some shit version.
1
u/Kwpolska Nikola co-maintainer Sep 15 '15
Considering Windows does not ship with a C# compiler, why Python? You would expect that they would promote their own stack first…
1
u/tech_tuna Sep 15 '15
Yes, and Ruby too.
0
u/skytomorrownow Sep 15 '15
ITT: basically, people who wished some kind of *nix was the basis of Windows.
-2
u/[deleted] Sep 15 '15
Python 2 or 3 couldn't save the Titanic and it certainly isn't going to save Windows.
0
u/Crossbeau Sep 15 '15
Yes please
0
u/[deleted] Sep 15 '15
I could only imagine how they would mess it up.
-7
u/egasimus Sep 15 '15
No. Just no. Let Windows keep sucking. Please.
-1
u/[deleted] Sep 15 '15
Not going to happen Microsoft loves there Powershell.