There are python2 and python3.6 in the newly installed elementary OS 5.0. There are several compilation errors when reinstalling 3.8, which are recorded as follows:
- Gcc is missing
sudo apt-get install gcc
- INFO: Can't locate Tcl/Tk libs and/or headers is
missing Tcl/Tk:
So I want to install tcl-devel (my system is debian and tcl-dev is installed) and tk-devel (my system is debian Install tk-dev) to have header files, install tcl/tk, just put the static or dynamic library into the lib directory, only tcl-devel (tc-dev), tk-devel (tk-dev) will put the header The files are placed in /usr/include, and _tkinter must find these header files to compile.
sudo apt-get install tcl-dev
sudo apt-get install tk-dev
- INFO: Could not locate ffi libs and/or headers
Some people say that libffi-devel is installed, but it still doesn't work. Later, I saw libffi-dev installed somewhere, and it was done. I don't know how the two are related.
sudo sudo apt-get install libffi-dev