Python环境变量配置
python官网下载合适python版本
where python
查看python路径( /usr/local/bin/python3)
which python
查看当前python版本
设置环境变量:
vim. ~/.bashrc / ~/.bash_profile文件
在~/.bash_profile编辑 alias python=’ /usr/local/bin/python3’
在~/.bashrc 添加source ~/.bash_profile
source ~/.bash_profile
source ~/.bashrc
再次which python 查看路径是否生效