no such file or directory: pip缺失 xx.h 文件

1、安装visual studio, 并找到各类.h文件夹,复制到python对应的include文件夹下即可

2、参考:https://blog.csdn.net/zbzcDZF/article/details/90215639

1)安装win sdk

2)将对应的.H库文件添加到path中

3、出现这种情况大概率是某些包安装失败,可以手动安装whl包 pip install xxx.whl   【whl用绝对路径即可】

4、中途某个包无法安装,切换pip版本 ,如cnocr到21.0可安装完成

posted @ 2023-10-23 11:21  小毛编  阅读(25)  评论(0编辑  收藏  举报