[Python] How to install python3.7-dev on Ubuntu 20.04?

Discussão em 'Python' iniciado por Stack, Agosto 12, 2025.

  1. Stack

    Stack Membro Participativo

    I need to use Python3.7 for a project, but Ubuntu 20.04 doesn't have python3.7-dev in the apt repositories. I've installed Python3.7 from a tarball, but it doesn't install the headers. I noticed in the build directory that libpython3.7m.a exists, but I'm looking for libpython3.7.so. I don't see any options to build shared versus static library, and I don't where that file goes, I was hoping the build script would take care of that.

    Does anyone know the recommended way to install python headers from older versions?

    Continue reading...

Compartilhe esta Página