centos 安装pysqlite-2.8.3.tar.gz src/connection.h:26:20: fatal error: Python.h: No such file or direct

前端之家收集整理的这篇文章主要介绍了centos 安装pysqlite-2.8.3.tar.gz src/connection.h:26:20: fatal error: Python.h: No such file or direct前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

将安装包pysqlite-2.8.3.tar.gz下载发哦服务器后,运行pip install pysqlite-2.8.3.tar.gz 出现报错:

src/connection.h:26:20: fatal error: Python.h: No such file or directory


解决办法:

yum install python-dev 或者 python-devel


继续安装接着报错:

src/connection.h:33:21: fatal error: sqlite3.h: No such file or directory


解决办法:

yum install sqlite-devel


继续安装成功

原文链接:https://www.f2er.com/centos/378545.html

猜你在找的CentOS相关文章