Mac电脑安装uwsgi报错:clang: error: no such file or directory: '/Users/steven/PycharmProjects/pythonProject/venv/lib/python3.8/config-3.8/libpython3.8.a'
刚换的 mac,安装uwsgi报错:
clang: error: no such file or directory: '/Users/steven/PycharmProjects/pythonProject/venv/lib/python3.8/config-3.8/libpython3.8.a'
解决思路:
全局搜索libpython3.8.a
搜索结果:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/config-3.8-darwin/libpython3.8.a
解决方法:
cp -rf /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/config-3.8-darwin /Users/steven/PycharmProjects/pythonProject/venv/lib/python3.8 mv config-3.8-darwin config-3.8
重新执行安装即可:
pip install uwsgi