Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyinstaller
#10
The problem for you is that when they build Python on this Distro they did not include Python shared library.
Python library not found: libpython3.7.so.1.0, libpython3.7mu.so.1.0, libpython3.7m.so, libpython3.7m.so.1.0
Try:
sudo apt-get install python3-dev
If that not work you most search for solution,there are several suggestion out there.

I use pyenv Simple Python Version Management when need to install a new Python version or switch.
So also here most include shared library's.
Let say i want to use Python 3.8.3 and use pyinstaller.
# Install with --enable-shared
tom@tom-VirtualBox:~$ PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.8.3
Downloading Python-3.8.3.tar.xz...
-> https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tar.xz
Installing Python-3.8.3...
Installed Python-3.8.3 to /home/tom/.pyenv/versions/3.8.3

# Set as system wide version
tom@tom-VirtualBox:~$ pyenv global 3.8.3

# Install pyinstaller
tom@tom-VirtualBox:~$ pip install pyinstaller

# Make
tom@tom-VirtualBox:~$ pyinstaller --onefile hello.py
61 INFO: PyInstaller: 3.6
61 INFO: Python: 3.8.3
66 INFO: Platform: Linux-4.15.0-32-generic-x86_64-with-glibc2.2.5
67 INFO: wrote /home/tom/hello.spec
.....
17781 INFO: Appending archive to ELF section in EXE /home/tom/dist/hello
17832 INFO: Building EXE from EXE-00.toc completed successfully.

# Cd to dist and run
tom@tom-VirtualBox:~$ cd dist

tom@tom-VirtualBox:~/dist$ ls
hello

tom@tom-VirtualBox:~/dist$ ./hello
hello world
Press Entert to quit
You can of course also do it as shown over if you setup pyenv Wink
Reply


Messages In This Thread
pyinstaller - by astral_travel - May-23-2020, 01:24 PM
RE: pyinstaller - by snippsat - May-23-2020, 02:04 PM
RE: pyinstaller - by astral_travel - May-23-2020, 02:40 PM
RE: pyinstaller - by snippsat - May-23-2020, 03:19 PM
RE: pyinstaller - by astral_travel - May-23-2020, 03:37 PM
RE: pyinstaller - by snippsat - May-23-2020, 04:19 PM
RE: pyinstaller - by astral_travel - May-23-2020, 04:26 PM
RE: pyinstaller - by snippsat - May-23-2020, 05:35 PM
RE: pyinstaller - by astral_travel - May-23-2020, 05:41 PM
RE: pyinstaller - by snippsat - May-23-2020, 10:05 PM
RE: pyinstaller - by pyzyx3qwerty - May-24-2020, 09:33 AM
RE: pyinstaller - by snippsat - May-24-2020, 10:14 AM
RE: pyinstaller - by pyzyx3qwerty - May-24-2020, 10:20 AM
RE: pyinstaller - by snippsat - May-24-2020, 11:41 AM
RE: pyinstaller - by astral_travel - May-24-2020, 04:17 PM
RE: pyinstaller - by pyzyx3qwerty - May-24-2020, 05:25 PM
RE: pyinstaller - by astral_travel - May-24-2020, 05:38 PM
RE: pyinstaller - by pyzyx3qwerty - May-24-2020, 05:38 PM
RE: pyinstaller - by astral_travel - May-24-2020, 05:42 PM
RE: pyinstaller - by pyzyx3qwerty - May-24-2020, 05:43 PM
RE: pyinstaller - by astral_travel - May-24-2020, 05:46 PM
RE: pyinstaller - by snippsat - May-24-2020, 05:54 PM
RE: pyinstaller - by astral_travel - May-24-2020, 06:10 PM
RE: pyinstaller - by astral_travel - May-24-2020, 08:20 PM
RE: pyinstaller - by snippsat - May-24-2020, 09:06 PM
RE: pyinstaller - by astral_travel - May-25-2020, 04:25 PM
RE: pyinstaller - by snippsat - May-25-2020, 04:55 PM
RE: pyinstaller - by astral_travel - May-25-2020, 06:02 PM
RE: pyinstaller - by snippsat - May-25-2020, 06:24 PM
RE: pyinstaller - by astral_travel - May-25-2020, 06:30 PM
RE: pyinstaller - by snippsat - May-25-2020, 06:38 PM
RE: pyinstaller - by astral_travel - May-27-2020, 06:38 PM
RE: pyinstaller - by astral_travel - May-28-2020, 02:15 PM
RE: pyinstaller - by snippsat - May-28-2020, 03:29 PM
RE: pyinstaller - by astral_travel - May-28-2020, 04:25 PM
RE: pyinstaller - by snippsat - May-28-2020, 05:07 PM
RE: pyinstaller - by astral_travel - May-28-2020, 05:16 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020