美文网首页
Maple_0410\\OS X修改python的软连接

Maple_0410\\OS X修改python的软连接

作者: maple216 | 来源:发表于2020-04-10 15:53 被阅读0次

macOS下的python默认为python 2,修改为python 3

1、查询python3的路径

which python3 #获得【maple_PATH】

2、打开配置文件

open ~/.bash_profile

3、写入外部环境变量

export PATH=${PATH}:【maple_PATH】

4、重新制作替身

alias python="【maple_PATH】"

5、保存并关闭配置文件,后并运行

source ~/.bash_profile

相关文章

网友评论

      本文标题:Maple_0410\\OS X修改python的软连接

      本文链接:https://www.haomeiwen.com/subject/fvirmhtx.html