本文介绍了无法在MacOS中将Python从3.6更新到3.7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试了一些命令,以在MacOS上的自制软件中将python 3.6更新为python 3.7.

I have tried several commands to update python 3.6 to python 3.7 in homebrew on MacOS.

我已经尝试过(作为管理员用户):

I have tried (as administrator user):

brew update

这声称安装了python 3.7

This claimed to install python 3.7

brew upgrade

brew link python3

brew link --overwrite python3

brew unlink python && brew link python

brew switch python 3.7.0

brew switch python 3.7.5
Cleaning /usr/local/Cellar/python/3.7.5
24 links created for /usr/local/Cellar/python/3.7.5

经过所有这些尝试,我仍然得到以下信息: python3-版本 Python 3.6.5

After all those attempts, I still get this: python3 --version Python 3.6.5

有人可以帮我切换到python3吗?

Can someone please help me to get switched over to python3?

推荐答案

最终的解决方案是已经安装了Python 3.7,可以使用命令python3.7对其进行访问.

The final solution was that Python 3.7 was already installed and could be accessed using the command python3.7.

这篇关于无法在MacOS中将Python从3.6更新到3.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-18 13:42
查看更多