尝试通过Pycharm中的pip安装numpy时出错

问题描述 投票:0回答:1

我在尝试使用python3.8解释器通过pipenv安装numpy时遇到问题。我在控制台中收到一个非常大的错误转储。我已经成功地使用python3解释器安装了numpy,所以我不明白为什么我不能使用最新的python版本。错误日志很长,我不得不上传它:

https://textuploader.com/108j9

- 感谢

python python-3.x numpy pip installation
1个回答
0
投票

错误是:

  _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
© www.soinside.com 2019 - 2024. All rights reserved.