Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 5
    What if we don't have su access on the machine? I'm working in a viritual env with local user authorization. Is there any "pip"-like fix available, or someplace we can manually place a copy of Python.h? Commented Jul 21, 2022 at 20:06
  • 1
    @sh37211 Yeah, you would usually just download the CPython sources to your homedir. Some custom linker options providing the path would usually be required in that case. Commented Nov 15, 2022 at 2:25
  • 1
    @PhilGoetz See how to install apt-cyg for Cygwin? Commented Feb 4, 2023 at 20:03
  • 19
    It seems that we need to install the specific python(2-3)-dev version. Sample for 3.11: sudo apt-get install python3.11-dev. Only this worked for me. Commented Feb 8, 2023 at 9:42
  • 2
    @sh37211 a bit late but i would go with linuxbrew. Compiling python from source needs some (a lot) packages installed from system package manager too Commented Jun 22, 2023 at 9:14