Mac 切换默认python2.7为python3.9,ModuleNotFoundError: No module named ‘requests‘
vim ~/.bash_profile
#python 默认3.9
export PATH=/usr/local/Frameworks/Python.framework/Versions/3.9/bin:$PATH
alias python="/usr/local/Frameworks/Python.framework/Versions/3.9/bin/python3.9"
#python
添加上面代码至bash_profile并保存退出
source ~/.bash_profile
luw.
原创
2020-12-29 09:22:55 ·
765 阅读 ·
0 评论