macOS 12.3 finally deletes its own Python 2, which even die-hard Python fans applaud

Congratulations, Apple has officially launched the macOS 12.3 version, and finally deleted the Python 2 that comes with it! When the beta version was launched before, some netizens said excitedly:

finally! While I’m a diehard Python fan, I really hope that operating systems don’t have Python built-in anymore!

join us on telegram

Operating system bundles with programming languages ​​are a disadvantage rather than an advantage. After all, the operation is as fierce as a tiger, and in the end, the code cannot run because of the confusion of the Python version, and I should not be the only one…

The specific update is as follows:

Apple said that in this update, the original built-in Python 2.7 will be removed, and developers are advised to use Python 3 or other programming languages. Previously, Apple explained that keeping Python 2, which officially stopped updating and maintaining in 2020, in the system is to ensure the compatibility of older software.

It’s important to note that macOS Monterey 12.3 does not come with Python 3 preinstalled.

The world is suffering, the Python environment has been chaotic for a long time

Life is short, I use Python.

Python is popular all over the world due to its simplicity and low cost of learning. But the advantages are outstanding, and there are also many shortcomings. In addition to slow execution and incompatibility between Python 2 and 3, its cluttered development environment is often criticized. Looking at another famous meme, you can probably feel the pain of the developers…

In fact, in order to solve this problem, programmers have also worked hard. For example, pipenv is a tool designed to simplify the setup of the Python development environment. Specifically, pipenv has the following features:

  • Integrate the functionality of both pip and virtualenv;
  • Use Pipfile and Pipfile.lock instead of requirement.txt to make it easier to figure out dependencies;
  • Multiple Python versions can be used in the development environment;
  • Extensive use of hash verification can automatically expose security vulnerabilities;
  • The development process can be simplified by automatically loading .env to read environment variables.

virtualenv, venv, poetry, conda… These Python environment management tools are also popular among programmers. However, there are also programmers who complain, and repeating the wheel, again and again, is itself a disaster…

The Python community reinvents the wheel again and again, distutils, setuptools, pip, pipenv, tox, flit, conda, poetry, virtualenv, requirements.txt, setup.py, setup.cfg, pyproject.toml… trouble to deal with There’s just no end to things.

This is a disaster.

So, are you bothered by the “mess” of Python?

Reference link:

Leave a Comment