作业系统:macOS Big Sur 11.1
我已经卸载了python3.8和python3.9
但我echo $PATH
给:
我尝试通过修改路径变量vi ~/.bash_profile
,但bash_profile
不存在。
我没有touch .bash_profile
和
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
然后source ~/.bash_profile
。但是重启终端后,echo $PATH
并没有改变...
如何/Library/Frameworks/Python.framework/Versions/3.8/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:
从路径变量中删除?该消息来自哪个文件?是因为我没有完全卸载python吗?
bash
不再是macOS中的默认外壳。现在的默认外壳是zsh
;要附加到PATH,您应该修改~/.zshrc
或~/.zprofile
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句