macOS 12.3 更新洗掉了 Python 2 并將其替換為版本 3:
https://developer.apple.com/documentation/macos-release-notes/macos-12_3-release-notes
Python 棄用 Python 2.7 在此更新中已從 macOS 中洗掉。開發人員應該使用 Python 3 或替代語言。(39795874)
我知道我們需要遷移到版本 3,但同時我們仍然需要版本 2。 Homebrew 似乎不再有它了:
brew install [email protected]
Warning: No available formula with the name "[email protected]". Did you mean [email protected], [email protected], [email protected], [email protected] or python-yq?
brew install python2
Warning: No available formula with the name "python2". Did you mean ipython, bpython, jython or cython?
是什么賦予了?
uj5u.com熱心網友回復:
您可以從官方下載站點獲取任何 Python 版本,包括最新的 Python 2:
https://www.python.org/downloads/release/python-2718/ → macOS 64 位安裝程式
uj5u.com熱心網友回復:
更多相關資訊。由于macOS 洗掉了對 python2 的支持,它被洗掉了,并且還有一個未解決的問題來洗掉所有 python2 公式。
我建議不要使用 python 官方安裝程式,而是使用pyenv,這更容易在本地管理多個 python 版本。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/462184.html
標籤:Python 苹果系统 python-2.7 自制 马科斯-蒙特雷
