install python3.8 but not found include folders

1.9k Views Asked by At

I am trying to fix a issue of YouCompleteMe when run install.py in linux.

It says ERROR: Python headers are missing in /usr/include/python3.8 So I try to install python3.8 with:

sudo apt install python3.8

Command is success but that include folder still not there, I can only see 2.7 and 3.5 folders:

python2.7/  python3.5/  python3.5m/

What's the reasone 3.5 folders is there but 3.8 folders not?

1

There are 1 best solutions below

2
On

Try specifying version.

$ sudo apt-get install python3.8-dev

Above line helped me to get include folder for python version 3.8