0

My program is "Hello World". If I try to compile the C code I get this error:

Unable to open include file patchlevel.h

How to fix this? My Python version 3.5.

Azeem
  • 11,148
  • 4
  • 27
  • 40
prem
  • 572
  • 2
  • 7
  • 26
  • Related: https://stackoverflow.com/questions/6782071/boostbuild-patchlevel-h-does-not-exist – Azeem Jun 28 '17 at 07:43
  • I checked that question already. Python-dev is for linux machine. For windows there is no pythondev? – prem Jun 28 '17 at 08:38
  • https://stackoverflow.com/questions/16448710/how-to-get-python-dev-for-windows – prem Jun 28 '17 at 08:45
  • Already read that and this one: https://stackoverflow.com/questions/23995129/how-can-i-manage-to-install-packages-within-python-dev-on-windows-systems-just-l – Azeem Jun 28 '17 at 08:48
  • I can see the path for include files by the way i fixed python.h file whereas, patchlevel.h not taking. – prem Jun 28 '17 at 08:51
  • Right. Does this file `patchlevel.h` exist in the `include` folder? – Azeem Jun 28 '17 at 08:53
  • https://stackoverflow.com/questions/16448710/how-to-get-python-dev-for-windows – prem Jun 28 '17 at 09:38
  • He fixed it Meet Taraviya. I didn't understand how the way he fixed? python-config --ldflags – prem Jun 28 '17 at 09:39

0 Answers0