My mac has python3 and python2 installed by default.
Before now, only python3 and pip3 commands were working on the macOS terminal. But when I upgraded my pip pip3 install --upgrade pip
, my pip command works as well, and when I type python --version
it shows 2.7.16. Although I still have python3 installed, I don't like having python2. Can I uninstall python2 or is it just not possible?
Keep in mind that the python --version
command showed an error before I upgraded pip
If Python 2 was installed onto your Mac by default, do NOT try to remove it as it is not possible, and could break your entire operating system.
As @GavinWong said, do not try to remove Python 2 from your Mac. Some of the scripts used by the operating system are written in Python 2 and hence Python 2 must be available for Mac to fubtion properly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.