Who added Python to the latest Windows update?

Original author: Microsoft
  • Transfer

A few days ago, the Windows team  announced the May 2019 update for Windows 10 . In this post, we'll take a look at what we, the Python team, have done to make Python installation on Windows easier. In particular, we’ll talk about the Microsoft Store and the addition of the default command “python.exe” to facilitate the search (in collaboration with Windows). You may have already heard about this in the Python Bytes podcast  , on PyCon US, or on Twitter .


The header of the Python 3.7 page in the Microsoft Store

As software moves from a PC to the cloud, browser, and the Internet of things, development workflows change. Although Visual Studio remains an excellent starting point for any workload on Windows, many developers now prefer to use the tools individually and on demand.


For other operating systems, the package manager supported by the platform is the traditional place to find individual tools that have been configured, tested, and tested for the system. On Windows, we are exploring ways to provide similar experiences to developers without affecting non-developer users and without compromising publishers' ability to manage their releases. Windows Subsystem for Linux is one approach that offers developers consistency between their build and deployment environments. But there are other developer tools that also matter.


One such tool is Python. Microsoft has been working with the Python community for over twelve years and is currently interacting directly with the four key contributors to the language and core runtime. The development of Python is incredible, because it is used by data analysts, web developers, system administrators and students, and at least half of their tasks can already be done on Windows . But while Python developers on Windows are faced with more questions than on other platforms.


Install Python on Windows


The Windows command prompt showing an error when Python cannot be found

For many years, it has been widely known that Windows is the only major operating system that does not have a built-in Python interpreter. For many users who will never need this, this helps reduce the size and increase the security of the operating system. But for those of us who need it, the lack of Python is sorely felt.


Once you find that you need to get Python, you will quickly come across many choices. Will you download the installer from python.org? Or perhaps a distribution like Anaconda? Visual Studio installer is also an option. And which version is needed? How will you gain access after installation? You will find more answers than you need, and depending on your situation, any of them may be correct.


We took the time to understand why someone finds the error mentioned above, and what kind of help he needs. If you are already a Python expert with complex needs, you probably know how to install and use it. It is much more likely that someone will encounter this problem for the first time when they try to use Python. Many of the teachers with whom we spoke confirmed this hypothesis - students are faced with this much more often than experienced developers.


And we made it all easier.


The header of the Python 3.7 page in the Microsoft Store


Во-первых, мы помогли сообществу выпустить Python в Microsoft Store. Эта версия Python полностью подготовлена сообществом, легко устанавливается на Windows 10, и автоматически делает стандартные команды pythonpip и idle доступными (как и их эквиваленты в версиях python3 и python3.7, для всех команд, как на Linux).


The Windows command prompt showing that "python3.7" now launches Python and "pip3" launches pip


Finally, with the May update of Windows 2019, we are finishing the picture. Although Python continues to be completely independent of the operating system, each installation of Windows will include the python and python3 commands that lead you directly to   the Python page . We believe that the Microsoft Store is ideal for users starting to work with Python, and, given our experience with it and participation in the Python community, we are happy to support it as the default choice.


Scott Hanselman on Twitter: "WHOA. I'm on a new copy of Windows and I typed Python - on a machine where I don't have it - and it launched the Windows Store into an official distribution I can install in a click. WHEN did this happen. I love this. "

We hope everyone will be as happy as  Scott Hanselman when he discovered this . Over time, we plan to expand similar integration with other tools for developers and solve problems with getting started. We would love to hear your thoughts and suggestions, so feel free to leave comments here or use the Windows Feedback application.


Also popular now: