How to create Python3 WITHOUT tk support?

Basically, I want to create a minimal version of Python 3 (this will work on a headless server, so there is no GUI, no mouse, no keyboard). The tk dependency for most Python packages calls X and many other user interfaces that I don't need.

There is nothing in ./configure --help that tells me how to disable build with tk. And nothing in the README included in the source archive. Its surprisingly hard to find information about this, so what is such a spell necessary?

+6
source share
1 answer

If the server you are trying to build Python on does not have tcl / tk installed, then Python will skip this part during the build process.

+1
source

Source: https://habr.com/ru/post/979526/


All Articles