Harry
Harry

Reputation: 13

Error while trying to install numpy through pip in Pycharm

I'm having an issue while trying to install numpy through the pipenv using python3.8 interpreter. I get a VERY large error dump in the console. I had success installing numpy with python3 interpreter so i'm not understanding why i can't with the most current python version. There error log is so long I had to upload it:

https://textuploader.com/108j9

--Thanks

Upvotes: 1

Views: 1265

Answers (2)

Yanov
Yanov

Reputation: 674

For Python 3.9:

sudo apt-get install python3.9-dev 

Upvotes: 0

zxzak
zxzak

Reputation: 9446

The error is:

  _configtest.c:1:10: fatal error: Python.h: No such file or directory
       #include <Python.h>
                ^~~~~~~~~~

It seems that you are missing the header files for building Python 3.8 modules specifically. Try:

sudo apt-get install python3.8-dev

Upvotes: 2

Related Questions