我可以确认我安装了 python3.8
brew install python
Warning: python@3.8 3.8.5 is already installed and up-to-date
To reinstall 3.8.5, run `brew reinstall python@3.8
不过macOS还是指向python3.6$python --version
Python 3.6.8 :: Anaconda, Inc.
$ python
Python 3.6.8 |Anaconda, Inc.| (default, Dec 29 2018, 19:04:46)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
指向 3.8 版的解决方法是什么?
最佳答案
我找到了出路
conda install python=3.8
为我工作。$ python
Python 3.8.3 (default, Jul 2 2020, 11:26:31)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
关于python - MacOS stil 指向 python3.6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63364156/