Steps to building the PySwissEph library on Windows

  • Download a Python27 release
  • Download MinGW
  • During the MinGW setup, install GCC/G++ plus additional libraries (“pthreads, etc, etc”)
  • Configure Python and MinGW to work together by following: this link
  • In pyswisspeh-master/libswe/swejpl.c around line 79 comment out the following line: /*typedef __int64 off_t;*/
  • in add pthreads to your Link Flags: ldflags = ['-lpthread']