Mac改终端python运行版本

2024-10-12 22:25:38

1、Ctrl+F 搜查terminal打开

2、输入"Python --version"查看当前版本(注意Python后有空格)

Mac改终端python运行版本

4、输入“nano ~/.bash_profile”,回车

Mac改终端python运行版本

6、Control+X,跳出菜单,按“Y”确定,关闭重启。

7、重启后,测试已是运行最新版本。

Mac改终端python运行版本
猜你喜欢