Search code examples
pythonpython-3.xnumpypipcygwin

Cannot install numpy in Cygwin even after installing python-devel


I have tried multiple times deleting my cygwin64 folder and reinstalling cygwin with python37 and python37-devel and trying to run

pip3 install numpy==1.21.6

but I keep getting the message

SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.

What could be the issue? I already have the python development package for the version of python I installed, so this is quite frustrating. I also tried with python39 and python39-devel, got the same thing.


Solution

  • Never mind, I just switched to Windows Subsystem for Linux and my life became a lot easier.