我正在尝试制作一个与primer3一起使用的流线型应用程序,并且python文件在我的PC上运行良好。但是,我在运行 Linux 系统的 ec2 服务器上安装primer3-py 时遇到问题。
我运行的命令是:
python3 setup.py build_ext --inplace
它会出现这样的错误:
primer3/src/primerdesign_py.c:30:13: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
以防万一,我尝试pip3 install primer3-py
直接运行并导致同样的错误。似乎 gcc 是 Cython 的一部分,我已经成功安装了它。
如果有任何帮助,我将不胜感激!谢谢!