简体   繁体   English

如何在 macOS Catalina 版本 10.15.7 上卸载 Python 2.7.16 或如何切换到 Python 3.9.2?

[英]How to uninstall Python 2.7.16 on a macOS Catalina Version 10.15.7 or how to switch to Python 3.9.2?

Already have python3 but python2 is giving me conflict.已经有 python3 但 python2 给我冲突。

How to transition to using python3 from within terminal and how to prevent picking up python2 version?如何从终端内过渡到使用 python3 以及如何防止获取 python2 版本?

Python 2.7 comes with macOS as part of the OS, you can't remove it without causing major issues... Python 2.7 随 macOS 一起作为操作系统的一部分,您无法在不引起重大问题的情况下将其删除...

I recommend using venv (virtual environment) in order to install/run other python versions on macOS我建议使用venv (虚拟环境)在 macOS 上安装/运行其他 python 版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python 3.8.5 安装在 MacOS 上,但 python --version 返回 2.7.16 -- 我该如何解决这个问题? - Python 3.8.5 installed on MacOS but python --version returns 2.7.16 -- How do I fix this? 如何将 python 2.7.16 更换为 python 3? - How to replace python 2.7.16 to python 3? 如何在macOS Catalina中将python自制版本设置为默认值 - How to set python homebrew version as default in macos Catalina 如何将旧的python 2.7.x版本升级到2.7.16? - How to upgrade older python 2.7.x version to 2.7.16? 如何将我的 Visual Studio Code 终端上的 python 版本 2.7.16 更改为更新的 python 版本? - How change the python version 2.7.16 on my Visual Studio Code terminal to the newer python version? 如何从MacOS卸载本地python软件包 - How to uninstall local python package from MacOS 安装3.8后如何防止终端捡起旧的python版本2.7.16 - How to prevent terminal from picking up old python version 2.7.16 after installing 3.8 尝试用 3.8.5 python 版本到 3.9.2 版本编写的启动程序。 如何解决这个问题? - Trying launch program written in 3.8.5 python version through 3.9.2 version. How solve this? 如何从 MacOS Catalina 10.15.4 中删除多个版本的 python - How to remove multiple versions of python from MacOS Catalina 10.15.4 如何使用 hdf4 安装 gdal 支持 macos catalina (python) - how to install gdal with hdf4 support macos catalina (python)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM