The problem for you is that when they build Python on this Distro they did not include Python shared library.
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.
Python library not found: libpython3.7.so.1.0, libpython3.7mu.so.1.0, libpython3.7m.so, libpython3.7m.so.1.0Try:
sudo apt-get install python3-devIf 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 quitYou can of course also do it as shown over if you setup pyenv
