标签:参考 could 环境变量 macos 编译 could not 教程 head pil
问题描述:
当使用pip安装Pillow python3包时提示the headers or library files could not be found for zlib,原因是环境变量设置里找不到zip headers library files相关文件,所以编译失败导致的。
解决方法:
将对应的zip库文件路径设置到环境变量即可。
编辑.zshrc或者.bashrc将下面环境变量添加即可
export CPATH=`xcrun --show-sdk-path`/usr/include
解决macos 10.15 pillow安装失败问题,提示the headers or library files could not be found for zlib
标签:参考 could 环境变量 macos 编译 could not 教程 head pil
原文地址:https://www.cnblogs.com/li1234yun/p/13126429.html