我在尝试使用python3.8解释器通过pipenv安装numpy时遇到问题。我在控制台中收到一个非常大的错误转储。我已经成功地使用python3解释器安装了numpy,所以我不明白为什么我不能使用最新的python版本。错误日志很长,我不得不上传它:
https://textuploader.com/108j9
- 感谢
错误是:
_configtest.c:1:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
[您似乎缺少了专门用于构建Python 3.8模块的头文件。尝试:
sudo apt-get install python3.8-dev