正文
/usr/local/Cellar/python@2 //@2 表示python版本,也可以是 @3
homebrew 安装的外部包的安装路径:
/Library/Python
========================================================================================
brew install python@3.8
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer)
原因:卸载了Xcode或者升级Xcode导致
处理:
sudo xcode-select -r
sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
xcode-select -p
方法一:terminal
python3
import sys
sys.path
打印结果:
[‘’, ‘/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python38.zip’, ‘/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8’, ‘/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/lib-dynload’, ‘/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages’, ‘/Library/Python/3.8/site-packages’, ‘/Library/Python/3.8/site-packages/Django-4.0.4-py3.8.egg’]
方法二:terminal
which python3
方法三:mac版Pycharm第三方库路径
现在能在网上找到很多很多的学习资源,有免费的也有收费的,当我拿到1套比较全的学习资源之前,我并没着急去看第1节,我而是去审视这套资源是否值得学习,有时候也会去问一些学长的意见,如果可以之后,我会对这套学习资源做1个学习计划,我的学习计划主要包括规划图和学习进度表。
分享给大家这份我薅到的免费视频资料,质量还不错,大家可以跟着学习