Mac系统使用pip3安装组件的时候报”外部管理环境”错误: error: externally-managed-environment
解决办法:
去掉这个提示
1、先查看当前python版本:
python3 --version
2、查找EXTERNALLY-MANAGED 文件的位置(根据自己当前使用的python版本修改对应文件):
find / -name EXTERNALLY-MANAGED
3、去掉这个提示:
sudo mv /opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/EXTERNALLY-MANAGED /opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/EXTERNALLY-MANAGED.bak
标签:EXTERNALLY,MANAGED,pip3,python,3.12,Mac,报错 From: https://www.cnblogs.com/Mist-G0/p/18215074