search

Home  >  Q&A  >  body text

python3.x - python3.5 uses pyinstaller to package and reports an error that libpython3.5mu.so.1.0 and other files cannot be found. Solution?

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

PHP中文网PHP中文网2751 days ago1389

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦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

    reply
    0
  • Cancelreply