r/Python • u/thegunn • Jun 05 '19
Win10 is going to start including Python 3.7
https://blog.adafruit.com/2019/06/04/new-guide-python-is-in-the-latest-build-of-windows-10-adafruitlearningsystem-python-adafruit-win10-windows-adafruit/108
u/manu_8487 Jun 06 '19
Funny, Apple just announced they will stop including scripting frameworks, like Python and Ruby because they don't want to update and maintain them.
142
u/xeloylvt Jun 06 '19
They are too busy with their new display stand support :)))
43
u/acu2005 Jun 06 '19
I mean if I'm paying a full thousand dollars for a monitor stand I better get fucking lifetime support on it!
22
2
3
1
5
4
u/robberviet Jun 06 '19
Everyone who actually use ruby or Python install new version by themselves anyway.
9
u/chameleon_world Jun 06 '19
Doesn't macOS currently require Python 2.7 to function? I would hope they stop including it as it is being depreciated.
1
-7
45
Jun 06 '19
And Apple is removing Python. What a time.
12
u/jimeno Jun 06 '19
as long as i can brew install python i'm fine. the real problem is the hardware is even more overpriced and less polished than before. proud owner of a 2012 mbp still going strong, but i seriously doubt i'll buy a mbp again.
2
2
2
u/6c696e7578 Jun 06 '19
Maybe someone at apple could monitor that behaviour, because, I for one cannot stand it.
1
u/yanksrock1000 Jun 06 '19
Pretty interesting situation. On one hand it will now be even easier to manage my local versions of Python on my Mac. On the other hand, its possible I would have never started learning Python without it being preinstalled...
0
Jun 06 '19
[deleted]
9
u/Rodot github.com/tardis-sn Jun 06 '19
You seem to be very ignorant about computer operating systems. Especially since most casual windows users are just as ignorant about computers, if not more so
0
Jun 06 '19
They dont need to care stop crying like “people dont know to python mwaaa” this is not even an issue, install python yourself if you need to you computer using tree
8
Jun 06 '19
Honestly I don't like this idea. Going to a website and clicking on "download" is not that much of a pain, especially when you know what version you want and how to install it. I never liked that Python (2) came with MacBooks, it caused more headaches than it solved, now Apple is going to stop but Microsoft starts?
5
u/thegunn Jun 06 '19
I can understand that but what's the harm in removing some more barrier to entry?
0
Jun 06 '19
[deleted]
7
u/treesprite82 Jun 06 '19
Python won't be installed by default. There'll just be one of those stub entries that let you install it easier.
0
Jun 06 '19
[deleted]
2
u/jantari Jun 06 '19
That's what PowerShell is for though.
Yea you'd like Python, but it's Windows so if you need to do that just use PowerShell instead.
24
u/pm_your_pc_setup Jun 06 '19
The source states it will be Python 3.7, which seems fine to me.
13
u/Wubbywub Jun 06 '19
i guess he's looking ahead? assuming microsoft continues including python 3.7 in the far future when we start using python 4+, ends up being like apple with python 2
13
u/pm_your_pc_setup Jun 06 '19
I am just happy, because the computers at my school are completely locked down. I can't install or use Python at school because of this, unless I use an online IDE that I can't use modules on. I would boot into Ubuntu, but we are not allowed to bring any sort of external storage or even a USB mouse.
4
Jun 06 '19
Are you a part of the CS program or some other technical discipline? I’m a part of IT at my university and if people make a relevant request relating to their program we will normally do a deployment to those machines in the labs for that school.
Talk with a faculty member to get them to push and make a request. I have grad students in the engineering programs asking for special special stuff and as long as it’s not licensed we will usually accommodate them.
2
u/pm_your_pc_setup Jun 06 '19
I am majoring in CS at the local community college while attending high school, but it is a no-go on the whole "administration will understand." It is a small school, so there is no dedicated IT department. Instead, the office manager does the IT related tasks, although she has no Cisco certification, college degree, or past experience in any tech field. In fact, we are not allowed to bring a mouse to school, because "the drivers would fill up the computer and make it crash."
1
Jun 06 '19
Sorry to hear that. Get your general Ed credits and move on to a proper school.
Best of luck.
1
1
u/Wubbywub Jun 06 '19
fair point but do school computers ever get updated? i see some of mine are still running windows 7 lol
1
u/pm_your_pc_setup Jun 06 '19
I'm at a STEM school, so we are lucky enough to have newer thinkpads with Windows 10.
1
-7
3
u/EternityForest Jun 06 '19
Microsoft is slowly getting their act together it seems. They did VS code, they haven't trashed GitHub, they haven't sued Linux recently. They could find a reason not to update it, but I trust them way more than apple.
They do have a thing about backwards compatiblity though. It would be cool if python itself added a way to specify right in the source file what interpreter version should be preferred.
Or maybe python could stop making backwards incompatible changes without incrementing the major version, but that isn't gonna happen.
1
Jun 06 '19
Or will they update it to the newest version every windows update and break your programs? Or what if you still want 3.6 and the Windows-installed 3.7 conflicts in unexpected ways? Generally I'm just in favour of packaging as little as possible with an OS, or with a new computer, and let users do what works for them, and if people aren't computer savvy enough to do that then they won't be coding anyways.
I'd be happy if they provide some option not to include it, but I doubt it as Windows has been moving more and more towards controlling what you have on your computer and how it operates.
6
u/SilkTouchm Jun 06 '19
Including python is really good. It means you can share python scripts to non-techies without having to compile it or telling them to download Python.
1
1
-2
u/pm_your_pc_setup Jun 06 '19
Yeah, the bloatware that comes with Windows 10 is pretty bad. I guess I agree if it was optional.
2
11
u/HeXagon_Prats Jun 06 '19
Most Linux distros come with Python preinstalled. It’s nice, like not having to worry about having a simple compiler for C/C++
13
u/angellus Jun 06 '19
The article is actually very misleading to the point the are trying to be deceitful.
you can get your Windows 10 installation updated to the latest version and use Python without having to download from Python.org.
Python will not be included in Windows by default. You still have to download them. PSF is going to start distributing Python via the Microsoft Store and Microsoft is putting in placeholder binaries for
pythonandpython3that opens up the storage page to the latest Python install on the store page. Each version of Python will be a standalone installation, similar to how versions of Ubuntu are standalone installations for WSL.1
4
u/kingrando1 Jun 06 '19
Steve Dower who is a core dev working at Microsoft led this I believe, so hopefully it won’t cause any headaches. He mentioned it a few months ago on the Talk Python to Me podcast.
3
u/Barafu Jun 06 '19
It seems to be a lot of pain for most users. Python on Android never got going because of this.
3
u/Newton715 Jun 06 '19
This bodes well for Microsoft to replace VBA with python as a scripting language in the office suite. I’d be very happy with that.
-2
u/firefrommoonlight Jun 06 '19
As long as Windows doesn't start relying on it. Python on Linux: Mess with the packages without using a Virtualenv, and break the OS.
3
Jun 06 '19
Python on most GNU/Linux distros are recent enough for most admistrative task, and that's what it's there for. If you're not happy with the version, use virtualenv and stop whining.
0
Jun 06 '19
This, for Red Hat or CentOS the python included is for the system, for example yum package manager is written in Python.
I would go further than suggesting using virtualenv. You don't want be tied to system Python at all, for example on these distros you actually can use http://ius.io repo and have access to any version of Python, you can even install multiple side by side, combining these with virtualenv your application is completely disconnected from the OS. There are equivalents on other systems, for example on FreeBSD they made a smart decision to make system base not depend on any accepting language, and similarly they provide all python versions packages.
On openSUSE I found opt-Python repo which similarly has multiple python versions and installs them in /opt to avoid conflicts with the system I'm sure other distributions have similar solutions
0
0
0
u/FoodComputer Jun 06 '19
I'd be pissed if I downloaded an installer for some program and ran it and it told me to download and install all of its dependencies and then run it again. The installer for an application should install all dependencies.
The thing Windows is missing is a package manager. You should as a third party developer be able to declare your dependencies in a standard format that Windows will parse during the installation of your application and go out and install them. Commonplace things like Java and Python should be available through the package manager. I don't want to install 40 copies of the same Python version because the applications that depend on them are distributed as frozen binaries.
The Linux world successfully employs a variety of package managers and I don't know anything about Mac but I think their Homebrew is basically the same thing. There is an unofficial package manager for Windows called Chocolatey, but unless it magically becomes available by default or automated install (hey Windows I require Chocolatey so go out to the store and get it) then it does not really solve the problem.
Note: I've been a Linux user almost exclusively since 2009 so my knowledge of Windows is not really up to date.
58
u/emolinare Jun 06 '19
As a matter of fact I am perfectly fine with this plan.
Even though it may cause some issues, such as l programs designed for Windows being stuck on the only Python version that Microsoft decides to support. Which could theoretically and also actually hurt the further development of Python, the benefits of Python code working out of the box on all future windows machines, are huge. This will elevate Python penetration to never before seen levels, which will increase demand for Python among youth programmers.
As long as Microsoft can come up with a way of supporting multiple versions of Python, and they will have to, this is a good plan.
28
u/nemec Jun 06 '19
All this does is install Python from the windows store. As long as that continues to be updated, you will get the latest version. Windows 10 is not taking any dependencies on Python itself (which is the usual reason the Python version languishes in distros)
6
u/Deto Jun 06 '19
I would imagine that any serious applications will still just bundle a separate Python runtime with their install.
11
Jun 06 '19 edited Oct 01 '26
[removed] — view removed comment
17
u/IamtheSlothKing Jun 06 '19
I think his point is that devs will target the version specifically running on Windows machines and fall behind in newer updates
2
Jun 06 '19 edited Oct 01 '26
[removed] — view removed comment
4
u/MonkeyNin Jun 06 '19
That and
defaults encoding to ascii, must opt-in for unicode literals
2.7 implicitly calls .encode and .decode, while py3 gives an error. (a good thing) (2 even allows you to call .encode on the result of .encode)
2
u/summonsays Jun 06 '19
As a web developer IE not following stanards is still a huge pain in my butt. I could see that happening easily to a specific version of python they decide to adopt.
28
u/who_body Jun 06 '19 edited Jun 06 '19
What I read was “python” will invoke python 2.7 and “python3” will invoke python 3.7. And I thought why continue this python3 thing....
Python should be the new python3
Edit: PEP 394 spells out related details
12
u/masteryod Jun 06 '19
It is in Arch and Fedora.
1
Jun 06 '19
Ubuntu needs to get the hell on this.
1
Jun 06 '19
I am on pyenv on ubuntu (pop!os actually) and this is my
python. I have only had good experience with pyenv thus far.$ python -c 'import sys;print(sys.version)' 3.7.3 (default, May 27 2019, 22:56:43) [GCC 7.4.0]0
u/jyper Jun 06 '19
I thought Arch fixed it to python3, or is it still wrong?
1
u/masteryod Jun 07 '19
https://www.archlinux.org/news/python-is-now-python-3/
Wow. It was 9 years ago. While people are still fricking out about Python 2 Arch wiped the slate clean almost a decade ago and everything was and is working just fine.
God, I love Arch.
2
u/jyper Jun 06 '19
Oh really thank God
It was so stupid that windows lacked python3 executable. On Mac/Linux you could just lunch python3 and on windows it was stupid and you had to install py launcher and run
py -24
u/splashtech Jun 06 '19
I worked around this by setting some PowerShell aliases so when I launch `python` or `python3`, it does the expected things.
Obviously doesn't work outside of PowerShell, but does the job for me.
3
u/Datsoon Jun 06 '19
I run on windows exclusively, and "python" from the command line works. What were you expecting?
1
u/jyper Jun 06 '19
python to bring up python 2
python3 to bring up python3
Like on OSX/Linux
Instead unfortunately they're both named python. It made transitioning harder then it needs to be(Mac/Linux also have symlinks with point versions so you can also run
python3.7)1
u/AnomalyNexus Jun 06 '19
PS C:\Users\AN> python --version
Python 3.6.5
Windows 10
...I don't recall how I installed it, but I'd be very surprised if a future roll out references 2.7 by default
1
u/jyper Jun 07 '19
It's whatever python is in your path
If you have both 2 and 3 in path, first one wins. If you have multiple you need the confusing py launcher to be certain or use a full path
2
1
u/Endemoniada Jun 06 '19
This is a whole thing, and not as simple as you may think. For example, what happens when python4 becomes a thing? Should “python” continue to point to 3, or should it just, one day, start pointing to 4 instead, potentially breaking stuff?
It would work if there was less dramatic shifts between versions and more backwards compatibility, but especially between 2 and 3 there just isn’t.
0
u/eissturm Jun 06 '19
"Python" should always point to the latest release on your machine, and older versions should be referenced like "python2"
We're still having this discussion 6 months from the end of python2 support because the community has been too scared to break anything. We need to make it the easiest route for people to use the latest version of Python
0
u/jyper Jun 06 '19
Nope
python3 binary is great, the only problem was that windows didn't have that command
1
u/who_body Jun 06 '19
The PEP394 ref clarified this
1
u/jyper Jun 06 '19
for the time being, all distributions shouldensure that python, if installed, refers to the same target as python2, unless the user deliberately overrides this or a virtual environment is active.
however, end users should be aware that python refers to python3 on at least Arch Linux (that change is what prompted the creation of this PEP), so python should be used in the shebang line only for scripts that are source compatible with both Python 2 and 3.
So arch didn't fix it? That's annoying
0
Jun 06 '19
[deleted]
1
u/who_body Jun 06 '19
Thanks for the PEP reference
So python is the new “python2 | python3” with many nuances
5
1
1
1
1
u/afro_coder Jun 07 '19
Python is great, mod_wsgi on the other hand a big pain in the ass because of windows libraries.
1
u/rushCtovarishchi Jun 08 '19
‘Bout fuckin time! I’ve been waiting for Windows to adopt Python compatibility for a long time, so this just made my day
1
u/jawalking Jun 06 '19
Personally this might be nice for me for OS bootstrap automation for driver testing. But this is going to get hairy in 5-10 years.
Apple made the right move. Anyone interested in scripting should be able to find the need version and run the installer.
An inbox native package manager on the other hand would be nice... “nuget install python37 vscode”
3
u/billsil Jun 06 '19
Apple made the right move.
Apple stopped updating their Python install.
4
u/dserodio Jun 06 '19
I think that's exactly his point
1
u/Rodot github.com/tardis-sn Jun 06 '19
Yeah, even on systems with an up to date Python install by default, the first thing I do is still install Anaconda
1
u/goldrunout Jun 06 '19
Isn't it already there? I haven't checked for years but I remember a thing called oneget that did that.
1
-3
-16
u/xeloylvt Jun 06 '19
I’m afraid even this move won’t save Windows.. you know, they also tried to include Ubuntu and other distros. Unfortunately I see this as an attempt of the Windows OS to piggy-back on something popular (time and again). Python rocks in part because it’s platform independent. And the community (which by the was also in part uses Windows) will not make a change in spirit just because Windows includes it. At least that’s my hope. Sorry for all that rant. You may release your tomatoes and eggs now :-D
6
u/MonkeyNin Jun 06 '19
I’m afraid even this move won’t save Windows.. you know, they also tried to include Ubuntu and other distros. Unfortunately I see this as an attempt of the Windows OS to piggy-back on something popular (time and again).
Um, what.
0
Jun 06 '19
[deleted]
7
u/Michaelmrose Jun 06 '19
Are you on drugs. Couldn't malware be packaged WITH python if the miscreant so desired?
2
u/sneakernet-veteran Jun 06 '19
Powershell is the biggest attack surface worldwide. And there's 50 different ways to bypass execution policy. Windows will be fine.
322
u/dinov Jun 06 '19
What's actually there is a small stub that launches into the app store to install Python. That installation in the app store is controlled by the core Python developers too, do it'll get updated to the latest version regularly. Steve Dower gave a talk about it at PyCon and I believe also mentioned it at the language summit there. So a lot of the concerns mentioned in the comments here should be mitigated.