I tried to use pyinstaller to package a python program on a Linux host and reported an error. The important information is: OSError: Python library not found: libpython3.5mu.so.1.0, libpython3.5.so.1.0, libpython3.5m.so. 1.0. I did not find these files on the operating system. How can I obtain these files? Thank you all.
Another question I would like to ask is, can the program packaged under linux6.5 run normally on linux6.8 and above systems?
P.S. My development machine is not connected to the Internet, so I cannot install the required packages through yum. I need to download them outside and upload them through ftp
伊谢尔伦2017-05-24 11:36:59
Find a solution...
1. Recompile the python installation package and use ./configure --enable -shared
2. Add the directory where the dynamic library file is located (for example, mine is /usr/local/lib) to LD_LIBRARY_PATH