talib/_ta_lib.c:4:10: fatal error: Python.h: 没有那个文件或目录 #include "Python.h"

问题分析:没有正确安装Python开发的头文件和静态库。使用软件包管理器在系统范围内安装它们。

对于apt(Ubuntu,Debian …):

sudo apt-get install python-dev   # for python2.x installs
sudo apt-get install python3-dev  # for python3.x installs

#对于yum(CentOS,RHEL …):

sudo yum install python-devel

#对于dnf(Fedora …):

sudo dnf install python2-devel  # for python2.x installs
sudo dnf install python3-devel  # for python3.x installs

猜你喜欢

转载自blog.csdn.net/qq_42642945/article/details/88316148
今日推荐