python - MacOS stil 指向 python3.6

标签 python macos

我可以确认我安装了 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/

相关文章:

python - 复制 html 代码从 "string"到下一个 "string"

android - 使用 Jenkins 构建 Unity 项目失败

php - 无法为 OS X 10.9.5 安装 Sphinx : '"/lib/cpp"fails sanity check'

objective-c - 如何将 QLPreviewPanel 显示为 cocoa 中的弹出窗口?

python - Flask 请求 : determine exact path, 包括是否有问号

python - 使用 ARMA 的统计模型

python - 我使用 pip 安装模块但我的程序响应, "No module named..."(PYTHON)

python - 如何根据列表中的元素从 Python 字典中删除元素?

macos - 为 NSSegmentedControl 着色...如何?

r - mac 中 Rcpp 包中的 dyn.load 错误