--with-threads(which by default) will mean that Python supports threads, which will mean that it import threadwill work. An easy way to check this withpython$version -m threading
--enable-shared , Python libpython$version.so, $prefix/lib ( python$version, ). - , - , , libpython. , python$version , ldd . , Debian /usr/lib/python$version.so , /usr/bin/python$version .