r/coding • • Jun 07 '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/
229 Upvotes

32 comments sorted by

5

u/burnblue Jun 08 '19

Why?

As in why build it in instead of letting devs and others install it if they want?

13

u/liuwenhao Jun 07 '19

Just as macOS preps to drop (bundled) Python 2.7. https://www.macobserver.com/analysis/macos-catalina-deprecates-unix-scripting-languages/ and will not be bundling Python 3.x.

What a strange world we live in.

13

u/Watabou90 Jun 07 '19

Apple is bundling python3. Their statement is for python2.7 that they continued to ship but have now deprecated.

macOS Catalina has python3.7 built in.

2

u/liuwenhao Jun 07 '19

Source? Not that I don't believe you, just wondering.

9

u/Watabou90 Jun 07 '19

From Apple themselves in their statement:

Future versions of macOS won’t include Python 2.7. Instead, it’s recommended that you run python3 from within Terminal. (51097165)

I have catalina myself and running python2 in the terminal gives you the same warning. However, Catalina comes with python3 and this is what Apple is recommending to use.

Now, I‘m not sure if Apple will continue including python3 as well since keeping them updated is apparently too much work: https://twitter.com/jckarter/status/1135642792028397568

3

u/lrflew Jun 07 '19

That quote is from the developer release notes. Right above it is the following:

Scripting language runtimes such as Python, Ruby, and Perl are included in macOS for compatibility with legacy software. Future versions of macOS won’t include scripting language runtimes by default, and might require you to install additional packages.

So Python 3 is still included, but it's marked for future removal.

1

u/Watabou90 Jun 07 '19

Yeah it’s a little confusing. If this was the case, why would they single out python2.7 by saying it won’t be included in a future release? Why didn’t they mention python3 as well?

1

u/ESCAPE_PLANET_X Jun 07 '19

Because 2.7 is ancient

2

u/Watabou90 Jun 07 '19

Oh agreed, I’ve updated all my scripts to 3.7 (with type annotations to boot), but my point was that if Apple was going to remove python3 as well in the future release, they wouldn’t have included in macOS Catalina, and they would have mentioned it alongside python2.7 in their release note.

However they explicitly only mention 2.7 as being slated for removal, encouraging developers to run python3 instead, which makes me think they’ll continue to bundle python3 going forwards, hopefully.

1

u/ESCAPE_PLANET_X Jun 08 '19

which makes me think they’ll continue to bundle python3 going forwards,

It won't be trivial to get rid of so expect it to stick around at least a little while. But it sounds like Apple just wants to ditch having to deal with them at all.

1

u/thomascgalvin Jun 07 '19

Google is Microsoft, Microsoft is Google, and Apple is working overtime to become an expensive lamp company again. I want the 90s back.

1

u/dethb0y Jun 08 '19

I want the 90s back.

Every fucking day.

3

u/OptionX Jun 08 '19

New terminal, WSL, bundled interpreters, decent general purpose code editor. Soon I won't have to hide away in shame when I go to program and I boot into windows so I won't get bullied by the *nix people.

1

u/[deleted] Jun 07 '19

A surprise to be sure but a welcome one. I'm now just worried about my Anaconda distribution.

0

u/DeadOrDyingBattery Jun 07 '19

In a world where I'm finding it extremely difficult to justify a Mac for a dev machine (or for anything really), I really appreciate the extra effort Microsoft is putting into Windows to make it better for me.

-5

u/datavirtue Jun 07 '19

Bye bye powershell

3

u/nerdshark Jun 07 '19

It's not being installed by default. What happens is that when you type 'python' or 'python3.7' on a machine without it installed, it takes you to the Python app store page so you can install it. It sure isn't going to replace Powershell in any meaningful capacity, especially considering how deeply integrated Powershell is.

2

u/datavirtue Jun 08 '19

I know. I have written a lot of powershell but it never quite takes with me. Python is so simple and powerful as an automation tool that I have switched to it for automating my development testing. Even though it is not easily available in windows.

My original comment was merely expressing my take on Python now being easier to install for most users. It excells at automation in my opinion and it being easier to install diminishes the importance of powershell.

0

u/mplang Jun 07 '19

This caused me a bit of trouble the other day, since the directory with the app store hooks to Python is higher in %PATH% than my actual Python bin folder, so I had scripts failing silently.

0

u/Ansjh Jun 07 '19

Interestingly, for me Win+R python opens my python 2.7 install, and running python via cmd gives me the app store.

0

u/[deleted] Jun 07 '19

[deleted]

1

u/walterbanana Jun 09 '19

Oh wow, they are even looking into other tools. Here is hoping they will do the same for PHP and OpenJDK in the future. Those are currently still annoying to get working.

0

u/[deleted] Jun 07 '19

[deleted]

4

u/[deleted] Jun 08 '19

This happened IRL about 3 years ago.

9

u/[deleted] Jun 07 '19

[removed] — view removed comment

1

u/TehFrozenYogurt Jun 08 '19
  1. Install Ubuntu from Microsoft Store

  2. sudo apt install python

But yeah I guess this is now

  1. Install Python from Microsoft Store

7

u/[deleted] Jun 07 '19

[removed] — view removed comment

7

u/irajputra Jun 07 '19

Does this mean Linux would be more vulnerable in future?

3

u/Espumma Jun 07 '19

Now that will truly be the year of desktop Linux

1

u/[deleted] Jun 08 '19

the question is how linux desktop is vulnerable

4

u/umilmi81 Jun 07 '19

wtf is going on

  • Missed the search engine boat

  • Missed the social media boat

  • Missed the video streaming boat

  • Missed the mobile phone boat

  • Missed the automatic driving boat

Microsoft missed so many boats they have to refit the Mississippi Riverboat they have to be ocean worthy. The boats they do have are Windows, SQL Server, and XBox. You go to war with the army you have, not the army you wish you had.

2

u/redwall_hp Jun 07 '19
  • Missed the server boat, outside of silly Intranet stuff for companies with deeper pockets than sense.

  • Missed the "non-corporate customers are willing to pay for OS upgrades" boat...and corporate customers keep clinging to old versions for a ridiculously long time.

The current CEO is the "Azure guy," and Azure is Linux based since that's what people develop for in the server world.