I tried rebuilding it with ./configure --prefix=<location of install> --enable-shared
Now after this i didn't got same error while running pyinstaller but was getting error: python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory So i set the env variable as LD_LIBRARY_PATH as <python install>/lib After that python works fine and i was able to generate exe but now on running exe, i am getting following error: Error loading Python lib '<path>/libpython2.7.so.1.0': <path>libpython2.7.so.1.0: cannot open shared object file: No such file or directory -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To view this discussion on the web visit https://groups.google.com/d/msg/pyinstaller/-/Kft_L8i7QS0J. To post to this group, send email to pyinstaller@googlegroups.com. To unsubscribe from this group, send email to pyinstaller+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.