Alpha-Craft
Anmeldungsdatum: 9. September 2021
Beiträge: 24
|
Nachdem ich von Zorin OS zu Ubuntu gewechselt habe, konnte ich nicht wie in Zorin die Python Pakete pyinstaller und auto-py-to-exe installieren. Ich bräuchte Hilfe dabei, diese zu installieren, da ich in keinerlei Quellen eine Lösung gefunden habe. Danke im vorraus!
|
DJKUhpisse
Supporter, Wikiteam
Anmeldungsdatum: 18. Oktober 2016
Beiträge: 18195
Wohnort: in deinem Browser, hier auf dem Bildschirm
|
Wie hast du das versucht und was war die Meldung?
|
Alpha-Craft
(Themenstarter)
Anmeldungsdatum: 9. September 2021
Beiträge: 24
|
DJKUhpisse schrieb: Wie hast du das versucht und was war die Meldung?
Ich habe es versucht mit pip install pyinstaller . Die Installation war scheinbar erfolgreich, aber als ich den Befehle ausprobiert habe, kam eine Meldung, dass es den Befehl "pyinstaller" nicht gibt. Ich habe es auch mit sudo apt install pyinstaller versucht, aber es wurde kein Paket gefunden.
|
von.wert
Anmeldungsdatum: 23. Dezember 2020
Beiträge: 11843
|
Wenn man schon in Python oder überhaupt programmiert, sollte man solche Basics selbst finden:
Dafür habe ich keine 5 s gebraucht.
|
DJKUhpisse
Supporter, Wikiteam
Anmeldungsdatum: 18. Oktober 2016
Beiträge: 18195
Wohnort: in deinem Browser, hier auf dem Bildschirm
|
In den Ubuntu-Repos gibt es kein pyinstaller.
Wie hast du das unter Zorin installiert?
|
Alpha-Craft
(Themenstarter)
Anmeldungsdatum: 9. September 2021
Beiträge: 24
|
DJKUhpisse schrieb: In den Ubuntu-Repos gibt es kein pyinstaller.
Wie hast du das unter Zorin installiert?
Vermutlich auch mit dem apt Befehl. Da bin ich mir nicht wirklich sicher.
|
Alpha-Craft
(Themenstarter)
Anmeldungsdatum: 9. September 2021
Beiträge: 24
|
von.wert schrieb: Wenn man schon in Python oder überhaupt programmiert, sollte man solche Basics selbst finden:
Dafür habe ich keine 5 s gebraucht.
Ich habe diese Sachen auch gefunden, aber keine Anleitung hat bei mir funktioniert.
|
von.wert
Anmeldungsdatum: 23. Dezember 2020
Beiträge: 11843
|
Pff, Anleitung, das sind nur wenige Befehlszeilen. Eben in einer LFocal-VM: Installation pip: ~$ sudo apt install pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python3-pip' instead of 'pip'
The following additional packages will be installed:
libexpat1-dev libpython3-dev libpython3.8-dev python-pip-whl python3-dev python3-distutils python3-lib2to3 python3-setuptools python3-wheel python3.8-dev zlib1g-dev
Suggested packages:
python-setuptools-doc
The following NEW packages will be installed:
libexpat1-dev libpython3-dev libpython3.8-dev python-pip-whl python3-dev python3-distutils python3-lib2to3 python3-pip python3-setuptools python3-wheel python3.8-dev zlib1g-dev
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 7.340 kB of archives.
After this operation, 29,1 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libexpat1-dev amd64 2.2.9-1build1 [116 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-dev amd64 3.8.10-0ubuntu1~20.04 [3.943 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 libpython3-dev amd64 3.8.2-0ubuntu2 [7.236 B]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 python-pip-whl all 20.0.2-5ubuntu1.6 [1.805 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu1.2 [155 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8-dev amd64 3.8.10-0ubuntu1~20.04 [510 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-lib2to3 all 3.8.10-0ubuntu1~20.04 [76,3 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-distutils all 3.8.10-0ubuntu1~20.04 [141 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/main amd64 python3-dev amd64 3.8.2-0ubuntu2 [1.212 B]
Get:10 http://archive.ubuntu.com/ubuntu focal/main amd64 python3-setuptools all 45.2.0-1 [330 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/universe amd64 python3-wheel all 0.34.2-1 [23,8 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 python3-pip all 20.0.2-5ubuntu1.6 [231 kB]
Fetched 7.340 kB in 0s (14,8 MB/s)
Selecting previously unselected package libexpat1-dev:amd64.
(Reading database ... 230201 files and directories currently installed.)
Preparing to unpack .../00-libexpat1-dev_2.2.9-1build1_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.2.9-1build1) ...
Selecting previously unselected package libpython3.8-dev:amd64.
Preparing to unpack .../01-libpython3.8-dev_3.8.10-0ubuntu1~20.04_amd64.deb ...
Unpacking libpython3.8-dev:amd64 (3.8.10-0ubuntu1~20.04) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../02-libpython3-dev_3.8.2-0ubuntu2_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.8.2-0ubuntu2) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../03-python-pip-whl_20.0.2-5ubuntu1.6_all.deb ...
Unpacking python-pip-whl (20.0.2-5ubuntu1.6) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../04-zlib1g-dev_1%3a1.2.11.dfsg-2ubuntu1.2_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu1.2) ...
Selecting previously unselected package python3.8-dev.
Preparing to unpack .../05-python3.8-dev_3.8.10-0ubuntu1~20.04_amd64.deb ...
Unpacking python3.8-dev (3.8.10-0ubuntu1~20.04) ...
Selecting previously unselected package python3-lib2to3.
Preparing to unpack .../06-python3-lib2to3_3.8.10-0ubuntu1~20.04_all.deb ...
Unpacking python3-lib2to3 (3.8.10-0ubuntu1~20.04) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../07-python3-distutils_3.8.10-0ubuntu1~20.04_all.deb ...
Unpacking python3-distutils (3.8.10-0ubuntu1~20.04) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../08-python3-dev_3.8.2-0ubuntu2_amd64.deb ...
Unpacking python3-dev (3.8.2-0ubuntu2) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../09-python3-setuptools_45.2.0-1_all.deb ...
Unpacking python3-setuptools (45.2.0-1) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../10-python3-wheel_0.34.2-1_all.deb ...
Unpacking python3-wheel (0.34.2-1) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../11-python3-pip_20.0.2-5ubuntu1.6_all.deb ...
Unpacking python3-pip (20.0.2-5ubuntu1.6) ...
Setting up python3-wheel (0.34.2-1) ...
Setting up libexpat1-dev:amd64 (2.2.9-1build1) ...
Setting up libpython3.8-dev:amd64 (3.8.10-0ubuntu1~20.04) ...
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu1.2) ...
Setting up python-pip-whl (20.0.2-5ubuntu1.6) ...
Setting up python3-lib2to3 (3.8.10-0ubuntu1~20.04) ...
Setting up python3-distutils (3.8.10-0ubuntu1~20.04) ...
Setting up libpython3-dev:amd64 (3.8.2-0ubuntu2) ...
Setting up python3-setuptools (45.2.0-1) ...
Setting up python3-pip (20.0.2-5ubuntu1.6) ...
Setting up python3.8-dev (3.8.10-0ubuntu1~20.04) ...
Setting up python3-dev (3.8.2-0ubuntu2) ...
Processing triggers for man-db (2.9.1-1) ...
~$ Installation pyinstaller mittels pip: ~$ pip install pyinstaller
Collecting pyinstaller
Downloading pyinstaller-4.5.1-py3-none-manylinux2014_x86_64.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 2.3 MB/s
Collecting pyinstaller-hooks-contrib>=2020.6
Downloading pyinstaller_hooks_contrib-2021.3-py2.py3-none-any.whl (200 kB)
|████████████████████████████████| 200 kB 75.9 MB/s
Collecting altgraph
Downloading altgraph-0.17-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from pyinstaller) (45.2.0)
Installing collected packages: pyinstaller-hooks-contrib, altgraph, pyinstaller
WARNING: The scripts pyi-archive_viewer, pyi-bindepend, pyi-grab_version, pyi-makespec, pyi-set_version and pyinstaller are installed in '/home/oneuser/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed altgraph-0.17 pyinstaller-4.5.1 pyinstaller-hooks-contrib-2021.3
~$ Installation auto-py-to-exe mittels pip: ~$ pip install auto-py-to-exe
Collecting auto-py-to-exe
Downloading auto_py_to_exe-2.10.0-py2.py3-none-any.whl (81 kB)
|████████████████████████████████| 81 kB 99 kB/s
Collecting Eel==0.12.4
Downloading Eel-0.12.4.tar.gz (15 kB)
Requirement already satisfied: pyinstaller>=4.1 in ./.local/lib/python3.8/site-packages (from auto-py-to-exe) (4.5.1)
Collecting bottle
Downloading bottle-0.12.19-py3-none-any.whl (89 kB)
|████████████████████████████████| 89 kB 3.9 MB/s
Collecting bottle-websocket
Downloading bottle-websocket-0.2.9.tar.gz (2.0 kB)
Collecting future
Downloading future-0.18.2.tar.gz (829 kB)
|████████████████████████████████| 829 kB 9.6 MB/s
Collecting whichcraft
Downloading whichcraft-0.6.1-py2.py3-none-any.whl (5.2 kB)
Requirement already satisfied: pyinstaller-hooks-contrib>=2020.6 in ./.local/lib/python3.8/site-packages (from pyinstaller>=4.1->auto-py-to-exe) (2021.3)
Requirement already satisfied: altgraph in ./.local/lib/python3.8/site-packages (from pyinstaller>=4.1->auto-py-to-exe) (0.17)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from pyinstaller>=4.1->auto-py-to-exe) (45.2.0)
Collecting gevent-websocket
Downloading gevent_websocket-0.10.1-py3-none-any.whl (22 kB)
Collecting gevent
Downloading gevent-21.8.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.5 MB)
|████████████████████████████████| 6.5 MB 64.9 MB/s
Collecting zope.event
Downloading zope.event-4.5.0-py2.py3-none-any.whl (6.8 kB)
Collecting greenlet<2.0,>=1.1.0; platform_python_implementation == "CPython"
Downloading greenlet-1.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (150 kB)
|████████████████████████████████| 150 kB 56.0 MB/s
Collecting zope.interface
Downloading zope.interface-5.4.0-cp38-cp38-manylinux2010_x86_64.whl (259 kB)
|████████████████████████████████| 259 kB 48.8 MB/s
Building wheels for collected packages: Eel, bottle-websocket, future
Building wheel for Eel (setup.py) ... done
Created wheel for Eel: filename=Eel-0.12.4-py3-none-any.whl size=16229 sha256=8a6964eb1cbd9efc2fc291abe18be32741d38b52f6e566227337dacc8258f74d
Stored in directory: /home/oneuser/.cache/pip/wheels/9d/ca/af/6610598aa208b55dc7939fd98f9585d65b9376cfbe5d6eb0ab
Building wheel for bottle-websocket (setup.py) ... done
Created wheel for bottle-websocket: filename=bottle_websocket-0.2.9-py3-none-any.whl size=2345 sha256=43a8e40ae151e4255b1d16ea6ffd83f1544b5afefba9313121a6717b5289728d
Stored in directory: /home/oneuser/.cache/pip/wheels/ab/bd/a8/c939961e0cf3a5515ea922ef6b47e33c1c7237f0ac39443ed5
Building wheel for future (setup.py) ... done
Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491058 sha256=2c3b1b520f0e8f94ce0cea24238820fdbeb6ebaad5f3177285d053a56b7b7ab5
Stored in directory: /home/oneuser/.cache/pip/wheels/8e/70/28/3d6ccd6e315f65f245da085482a2e1c7d14b90b30f239e2cf4
Successfully built Eel bottle-websocket future
Installing collected packages: bottle, zope.event, greenlet, zope.interface, gevent, gevent-websocket, bottle-websocket, future, whichcraft, Eel, auto-py-to-exe
WARNING: The scripts futurize and pasteurize are installed in '/home/oneuser/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts auto-py-to-exe and autopytoexe are installed in '/home/oneuser/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed Eel-0.12.4 auto-py-to-exe-2.10.0 bottle-0.12.19 bottle-websocket-0.2.9 future-0.18.2 gevent-21.8.0 gevent-websocket-0.10.1 greenlet-1.1.1 whichcraft-0.6.1 zope.event-4.5.0 zope.interface-5.4.0
~$ Soweit alles drauf. Test pyinstaller: $ ~/.local/bin/pyinstaller --help
usage: pyinstaller [-h] [-v] [-D] [-F] [--specpath DIR] [-n NAME] [--add-data <SRC;DEST or SRC:DEST>] [--add-binary <SRC;DEST or SRC:DEST>] [-p DIR] [--hidden-import MODULENAME]
[--collect-submodules MODULENAME] [--collect-data MODULENAME] [--collect-binaries MODULENAME] [--collect-all MODULENAME] [--copy-metadata PACKAGENAME]
[--recursive-copy-metadata PACKAGENAME] [--additional-hooks-dir HOOKSPATH] [--runtime-hook RUNTIME_HOOKS] [--exclude-module EXCLUDES] [--key KEY] [--splash IMAGE_FILE]
[-d {all,imports,bootloader,noarchive}] [-s] [--noupx] [--upx-exclude FILE] [-c] [-w] [-i <FILE.ico or FILE.exe,ID or FILE.icns or "NONE">]
[--disable-windowed-traceback] [--version-file FILE] [-m <FILE or XML>] [-r RESOURCE] [--uac-admin] [--uac-uiaccess] [--win-private-assemblies]
[--win-no-prefer-redirects] [--osx-bundle-identifier BUNDLE_IDENTIFIER] [--target-architecture ARCH] [--codesign-identity IDENTITY] [--osx-entitlements-file FILENAME]
[--runtime-tmpdir PATH] [--bootloader-ignore-signals] [--distpath DIR] [--workpath WORKPATH] [-y] [--upx-dir UPX_DIR] [-a] [--clean] [--log-level LEVEL]
scriptname [scriptname ...]
(...)
~$ Test auto-py-to-exe: ~$ ~/.local/bin/auto-py-to-exe
Error: tkinter not found
For linux, you can install tkinter by executing: "sudo apt-get install python3-tk"
~$ Aha. Na, dann machen wir das doch gleich: Installation python3-tk: ~$ sudo apt install python3-tk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
blt libtcl8.6 libtk8.6 tk8.6-blt2.5
Suggested packages:
blt-demo tcl8.6 tk8.6 tix python3-tk-dbg
The following NEW packages will be installed:
blt libtcl8.6 libtk8.6 python3-tk tk8.6-blt2.5
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 2.297 kB of archives.
After this operation, 9.465 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libtcl8.6 amd64 8.6.10+dfsg-1 [902 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 libtk8.6 amd64 8.6.10-1 [714 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 tk8.6-blt2.5 amd64 2.5.3+dfsg-4 [572 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/main amd64 blt amd64 2.5.3+dfsg-4 [4.944 B]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-tk amd64 3.8.10-0ubuntu1~20.04 [104 kB]
Fetched 2.297 kB in 0s (5.922 kB/s)
Selecting previously unselected package libtcl8.6:amd64.
(Reading database ... 231065 files and directories currently installed.)
Preparing to unpack .../libtcl8.6_8.6.10+dfsg-1_amd64.deb ...
Unpacking libtcl8.6:amd64 (8.6.10+dfsg-1) ...
Selecting previously unselected package libtk8.6:amd64.
Preparing to unpack .../libtk8.6_8.6.10-1_amd64.deb ...
Unpacking libtk8.6:amd64 (8.6.10-1) ...
Selecting previously unselected package tk8.6-blt2.5.
Preparing to unpack .../tk8.6-blt2.5_2.5.3+dfsg-4_amd64.deb ...
Unpacking tk8.6-blt2.5 (2.5.3+dfsg-4) ...
Selecting previously unselected package blt.
Preparing to unpack .../blt_2.5.3+dfsg-4_amd64.deb ...
Unpacking blt (2.5.3+dfsg-4) ...
Selecting previously unselected package python3-tk:amd64.
Preparing to unpack .../python3-tk_3.8.10-0ubuntu1~20.04_amd64.deb ...
Unpacking python3-tk:amd64 (3.8.10-0ubuntu1~20.04) ...
Setting up libtcl8.6:amd64 (8.6.10+dfsg-1) ...
Setting up libtk8.6:amd64 (8.6.10-1) ...
Setting up tk8.6-blt2.5 (2.5.3+dfsg-4) ...
Setting up blt (2.5.3+dfsg-4) ...
Setting up python3-tk:amd64 (3.8.10-0ubuntu1~20.04) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
~$ Erneuter Test auto-py-to-exe: ~$ ~/.local/bin/auto-py-to-exe --help
usage: auto-py-to-exe [-h] [-nc] [-nu] [-c [CONFIG]] [-o [OUTPUT_DIR]] [--logging-level [{DEBUG,INFO,WARNING,ERROR,CRITICAL}]] [--version] [filename]
positional arguments:
filename pass a file into the interface
optional arguments:
-h, --help show this help message and exit
-nc, --no-chrome do not open in chrome's app mode
-nu, --no-ui do not open a browser to show the application and simply print out where it's being hosted from. When using this option, you must manually stop the application
using Ctrl+C
-c [CONFIG], --config [CONFIG]
provide a json file containing a UI configuration to pre-populate the ui
-o [OUTPUT_DIR], --output-dir [OUTPUT_DIR]
the directory to put output in
--logging-level [{DEBUG,INFO,WARNING,ERROR,CRITICAL}]
the level to use for logging - defaults to ERROR
--version print the version - will not run the ui
~$
Fertig. Und was soll nun nicht funktionieren? Jemand, der programmieren will, muß sowas selbst hinbekommen.
|
von.wert
Anmeldungsdatum: 23. Dezember 2020
Beiträge: 11843
|
...und wenn Du nicht weißt, wohin das Zeug gelegt worden ist: ~$ sudo apt install mlocate
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
nocache
The following NEW packages will be installed:
mlocate
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 50,1 kB of archives.
After this operation, 258 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 mlocate amd64 0.26-3ubuntu3 [50,1 kB]
Fetched 50,1 kB in 0s (230 kB/s)
Selecting previously unselected package mlocate.
(Reading database ... 231468 files and directories currently installed.)
Preparing to unpack .../mlocate_0.26-3ubuntu3_amd64.deb ...
Unpacking mlocate (0.26-3ubuntu3) ...
Setting up mlocate (0.26-3ubuntu3) ...
update-alternatives: using /usr/bin/mlocate to provide /usr/bin/locate (locate) in auto mode
Adding group `mlocate' (GID 130) ...
Done.
Initializing mlocate database; this may take some time... done
Processing triggers for man-db (2.9.1-1) ...
~$
~$ sudo updatedb
~$ locate pyinstaller
/home/oneuser/.local/bin/pyinstaller
(und 'ne Menge weiterer)
~$
|
Alpha-Craft
(Themenstarter)
Anmeldungsdatum: 9. September 2021
Beiträge: 24
|
von.wert schrieb: Pff, Anleitung, das sind nur wenige Befehlszeilen. Eben in einer LFocal-VM: Installation pip: ~$ sudo apt install pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python3-pip' instead of 'pip'
The following additional packages will be installed:
libexpat1-dev libpython3-dev libpython3.8-dev python-pip-whl python3-dev python3-distutils python3-lib2to3 python3-setuptools python3-wheel python3.8-dev zlib1g-dev
Suggested packages:
python-setuptools-doc
The following NEW packages will be installed:
libexpat1-dev libpython3-dev libpython3.8-dev python-pip-whl python3-dev python3-distutils python3-lib2to3 python3-pip python3-setuptools python3-wheel python3.8-dev zlib1g-dev
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 7.340 kB of archives.
After this operation, 29,1 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libexpat1-dev amd64 2.2.9-1build1 [116 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-dev amd64 3.8.10-0ubuntu1~20.04 [3.943 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 libpython3-dev amd64 3.8.2-0ubuntu2 [7.236 B]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 python-pip-whl all 20.0.2-5ubuntu1.6 [1.805 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu1.2 [155 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8-dev amd64 3.8.10-0ubuntu1~20.04 [510 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-lib2to3 all 3.8.10-0ubuntu1~20.04 [76,3 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-distutils all 3.8.10-0ubuntu1~20.04 [141 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/main amd64 python3-dev amd64 3.8.2-0ubuntu2 [1.212 B]
Get:10 http://archive.ubuntu.com/ubuntu focal/main amd64 python3-setuptools all 45.2.0-1 [330 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/universe amd64 python3-wheel all 0.34.2-1 [23,8 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 python3-pip all 20.0.2-5ubuntu1.6 [231 kB]
Fetched 7.340 kB in 0s (14,8 MB/s)
Selecting previously unselected package libexpat1-dev:amd64.
(Reading database ... 230201 files and directories currently installed.)
Preparing to unpack .../00-libexpat1-dev_2.2.9-1build1_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.2.9-1build1) ...
Selecting previously unselected package libpython3.8-dev:amd64.
Preparing to unpack .../01-libpython3.8-dev_3.8.10-0ubuntu1~20.04_amd64.deb ...
Unpacking libpython3.8-dev:amd64 (3.8.10-0ubuntu1~20.04) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../02-libpython3-dev_3.8.2-0ubuntu2_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.8.2-0ubuntu2) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../03-python-pip-whl_20.0.2-5ubuntu1.6_all.deb ...
Unpacking python-pip-whl (20.0.2-5ubuntu1.6) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../04-zlib1g-dev_1%3a1.2.11.dfsg-2ubuntu1.2_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu1.2) ...
Selecting previously unselected package python3.8-dev.
Preparing to unpack .../05-python3.8-dev_3.8.10-0ubuntu1~20.04_amd64.deb ...
Unpacking python3.8-dev (3.8.10-0ubuntu1~20.04) ...
Selecting previously unselected package python3-lib2to3.
Preparing to unpack .../06-python3-lib2to3_3.8.10-0ubuntu1~20.04_all.deb ...
Unpacking python3-lib2to3 (3.8.10-0ubuntu1~20.04) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../07-python3-distutils_3.8.10-0ubuntu1~20.04_all.deb ...
Unpacking python3-distutils (3.8.10-0ubuntu1~20.04) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../08-python3-dev_3.8.2-0ubuntu2_amd64.deb ...
Unpacking python3-dev (3.8.2-0ubuntu2) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../09-python3-setuptools_45.2.0-1_all.deb ...
Unpacking python3-setuptools (45.2.0-1) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../10-python3-wheel_0.34.2-1_all.deb ...
Unpacking python3-wheel (0.34.2-1) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../11-python3-pip_20.0.2-5ubuntu1.6_all.deb ...
Unpacking python3-pip (20.0.2-5ubuntu1.6) ...
Setting up python3-wheel (0.34.2-1) ...
Setting up libexpat1-dev:amd64 (2.2.9-1build1) ...
Setting up libpython3.8-dev:amd64 (3.8.10-0ubuntu1~20.04) ...
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu1.2) ...
Setting up python-pip-whl (20.0.2-5ubuntu1.6) ...
Setting up python3-lib2to3 (3.8.10-0ubuntu1~20.04) ...
Setting up python3-distutils (3.8.10-0ubuntu1~20.04) ...
Setting up libpython3-dev:amd64 (3.8.2-0ubuntu2) ...
Setting up python3-setuptools (45.2.0-1) ...
Setting up python3-pip (20.0.2-5ubuntu1.6) ...
Setting up python3.8-dev (3.8.10-0ubuntu1~20.04) ...
Setting up python3-dev (3.8.2-0ubuntu2) ...
Processing triggers for man-db (2.9.1-1) ...
~$ Installation pyinstaller mittels pip: ~$ pip install pyinstaller
Collecting pyinstaller
Downloading pyinstaller-4.5.1-py3-none-manylinux2014_x86_64.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 2.3 MB/s
Collecting pyinstaller-hooks-contrib>=2020.6
Downloading pyinstaller_hooks_contrib-2021.3-py2.py3-none-any.whl (200 kB)
|████████████████████████████████| 200 kB 75.9 MB/s
Collecting altgraph
Downloading altgraph-0.17-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from pyinstaller) (45.2.0)
Installing collected packages: pyinstaller-hooks-contrib, altgraph, pyinstaller
WARNING: The scripts pyi-archive_viewer, pyi-bindepend, pyi-grab_version, pyi-makespec, pyi-set_version and pyinstaller are installed in '/home/oneuser/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed altgraph-0.17 pyinstaller-4.5.1 pyinstaller-hooks-contrib-2021.3
~$ Installation auto-py-to-exe mittels pip: ~$ pip install auto-py-to-exe
Collecting auto-py-to-exe
Downloading auto_py_to_exe-2.10.0-py2.py3-none-any.whl (81 kB)
|████████████████████████████████| 81 kB 99 kB/s
Collecting Eel==0.12.4
Downloading Eel-0.12.4.tar.gz (15 kB)
Requirement already satisfied: pyinstaller>=4.1 in ./.local/lib/python3.8/site-packages (from auto-py-to-exe) (4.5.1)
Collecting bottle
Downloading bottle-0.12.19-py3-none-any.whl (89 kB)
|████████████████████████████████| 89 kB 3.9 MB/s
Collecting bottle-websocket
Downloading bottle-websocket-0.2.9.tar.gz (2.0 kB)
Collecting future
Downloading future-0.18.2.tar.gz (829 kB)
|████████████████████████████████| 829 kB 9.6 MB/s
Collecting whichcraft
Downloading whichcraft-0.6.1-py2.py3-none-any.whl (5.2 kB)
Requirement already satisfied: pyinstaller-hooks-contrib>=2020.6 in ./.local/lib/python3.8/site-packages (from pyinstaller>=4.1->auto-py-to-exe) (2021.3)
Requirement already satisfied: altgraph in ./.local/lib/python3.8/site-packages (from pyinstaller>=4.1->auto-py-to-exe) (0.17)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from pyinstaller>=4.1->auto-py-to-exe) (45.2.0)
Collecting gevent-websocket
Downloading gevent_websocket-0.10.1-py3-none-any.whl (22 kB)
Collecting gevent
Downloading gevent-21.8.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.5 MB)
|████████████████████████████████| 6.5 MB 64.9 MB/s
Collecting zope.event
Downloading zope.event-4.5.0-py2.py3-none-any.whl (6.8 kB)
Collecting greenlet<2.0,>=1.1.0; platform_python_implementation == "CPython"
Downloading greenlet-1.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (150 kB)
|████████████████████████████████| 150 kB 56.0 MB/s
Collecting zope.interface
Downloading zope.interface-5.4.0-cp38-cp38-manylinux2010_x86_64.whl (259 kB)
|████████████████████████████████| 259 kB 48.8 MB/s
Building wheels for collected packages: Eel, bottle-websocket, future
Building wheel for Eel (setup.py) ... done
Created wheel for Eel: filename=Eel-0.12.4-py3-none-any.whl size=16229 sha256=8a6964eb1cbd9efc2fc291abe18be32741d38b52f6e566227337dacc8258f74d
Stored in directory: /home/oneuser/.cache/pip/wheels/9d/ca/af/6610598aa208b55dc7939fd98f9585d65b9376cfbe5d6eb0ab
Building wheel for bottle-websocket (setup.py) ... done
Created wheel for bottle-websocket: filename=bottle_websocket-0.2.9-py3-none-any.whl size=2345 sha256=43a8e40ae151e4255b1d16ea6ffd83f1544b5afefba9313121a6717b5289728d
Stored in directory: /home/oneuser/.cache/pip/wheels/ab/bd/a8/c939961e0cf3a5515ea922ef6b47e33c1c7237f0ac39443ed5
Building wheel for future (setup.py) ... done
Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491058 sha256=2c3b1b520f0e8f94ce0cea24238820fdbeb6ebaad5f3177285d053a56b7b7ab5
Stored in directory: /home/oneuser/.cache/pip/wheels/8e/70/28/3d6ccd6e315f65f245da085482a2e1c7d14b90b30f239e2cf4
Successfully built Eel bottle-websocket future
Installing collected packages: bottle, zope.event, greenlet, zope.interface, gevent, gevent-websocket, bottle-websocket, future, whichcraft, Eel, auto-py-to-exe
WARNING: The scripts futurize and pasteurize are installed in '/home/oneuser/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts auto-py-to-exe and autopytoexe are installed in '/home/oneuser/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed Eel-0.12.4 auto-py-to-exe-2.10.0 bottle-0.12.19 bottle-websocket-0.2.9 future-0.18.2 gevent-21.8.0 gevent-websocket-0.10.1 greenlet-1.1.1 whichcraft-0.6.1 zope.event-4.5.0 zope.interface-5.4.0
~$ Soweit alles drauf. Test pyinstaller: $ ~/.local/bin/pyinstaller --help
usage: pyinstaller [-h] [-v] [-D] [-F] [--specpath DIR] [-n NAME] [--add-data <SRC;DEST or SRC:DEST>] [--add-binary <SRC;DEST or SRC:DEST>] [-p DIR] [--hidden-import MODULENAME]
[--collect-submodules MODULENAME] [--collect-data MODULENAME] [--collect-binaries MODULENAME] [--collect-all MODULENAME] [--copy-metadata PACKAGENAME]
[--recursive-copy-metadata PACKAGENAME] [--additional-hooks-dir HOOKSPATH] [--runtime-hook RUNTIME_HOOKS] [--exclude-module EXCLUDES] [--key KEY] [--splash IMAGE_FILE]
[-d {all,imports,bootloader,noarchive}] [-s] [--noupx] [--upx-exclude FILE] [-c] [-w] [-i <FILE.ico or FILE.exe,ID or FILE.icns or "NONE">]
[--disable-windowed-traceback] [--version-file FILE] [-m <FILE or XML>] [-r RESOURCE] [--uac-admin] [--uac-uiaccess] [--win-private-assemblies]
[--win-no-prefer-redirects] [--osx-bundle-identifier BUNDLE_IDENTIFIER] [--target-architecture ARCH] [--codesign-identity IDENTITY] [--osx-entitlements-file FILENAME]
[--runtime-tmpdir PATH] [--bootloader-ignore-signals] [--distpath DIR] [--workpath WORKPATH] [-y] [--upx-dir UPX_DIR] [-a] [--clean] [--log-level LEVEL]
scriptname [scriptname ...]
(...)
~$ Test auto-py-to-exe: ~$ ~/.local/bin/auto-py-to-exe
Error: tkinter not found
For linux, you can install tkinter by executing: "sudo apt-get install python3-tk"
~$ Aha. Na, dann machen wir das doch gleich: Installation python3-tk: ~$ sudo apt install python3-tk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
blt libtcl8.6 libtk8.6 tk8.6-blt2.5
Suggested packages:
blt-demo tcl8.6 tk8.6 tix python3-tk-dbg
The following NEW packages will be installed:
blt libtcl8.6 libtk8.6 python3-tk tk8.6-blt2.5
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 2.297 kB of archives.
After this operation, 9.465 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libtcl8.6 amd64 8.6.10+dfsg-1 [902 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 libtk8.6 amd64 8.6.10-1 [714 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 tk8.6-blt2.5 amd64 2.5.3+dfsg-4 [572 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/main amd64 blt amd64 2.5.3+dfsg-4 [4.944 B]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-tk amd64 3.8.10-0ubuntu1~20.04 [104 kB]
Fetched 2.297 kB in 0s (5.922 kB/s)
Selecting previously unselected package libtcl8.6:amd64.
(Reading database ... 231065 files and directories currently installed.)
Preparing to unpack .../libtcl8.6_8.6.10+dfsg-1_amd64.deb ...
Unpacking libtcl8.6:amd64 (8.6.10+dfsg-1) ...
Selecting previously unselected package libtk8.6:amd64.
Preparing to unpack .../libtk8.6_8.6.10-1_amd64.deb ...
Unpacking libtk8.6:amd64 (8.6.10-1) ...
Selecting previously unselected package tk8.6-blt2.5.
Preparing to unpack .../tk8.6-blt2.5_2.5.3+dfsg-4_amd64.deb ...
Unpacking tk8.6-blt2.5 (2.5.3+dfsg-4) ...
Selecting previously unselected package blt.
Preparing to unpack .../blt_2.5.3+dfsg-4_amd64.deb ...
Unpacking blt (2.5.3+dfsg-4) ...
Selecting previously unselected package python3-tk:amd64.
Preparing to unpack .../python3-tk_3.8.10-0ubuntu1~20.04_amd64.deb ...
Unpacking python3-tk:amd64 (3.8.10-0ubuntu1~20.04) ...
Setting up libtcl8.6:amd64 (8.6.10+dfsg-1) ...
Setting up libtk8.6:amd64 (8.6.10-1) ...
Setting up tk8.6-blt2.5 (2.5.3+dfsg-4) ...
Setting up blt (2.5.3+dfsg-4) ...
Setting up python3-tk:amd64 (3.8.10-0ubuntu1~20.04) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
~$ Erneuter Test auto-py-to-exe: ~$ ~/.local/bin/auto-py-to-exe --help
usage: auto-py-to-exe [-h] [-nc] [-nu] [-c [CONFIG]] [-o [OUTPUT_DIR]] [--logging-level [{DEBUG,INFO,WARNING,ERROR,CRITICAL}]] [--version] [filename]
positional arguments:
filename pass a file into the interface
optional arguments:
-h, --help show this help message and exit
-nc, --no-chrome do not open in chrome's app mode
-nu, --no-ui do not open a browser to show the application and simply print out where it's being hosted from. When using this option, you must manually stop the application
using Ctrl+C
-c [CONFIG], --config [CONFIG]
provide a json file containing a UI configuration to pre-populate the ui
-o [OUTPUT_DIR], --output-dir [OUTPUT_DIR]
the directory to put output in
--logging-level [{DEBUG,INFO,WARNING,ERROR,CRITICAL}]
the level to use for logging - defaults to ERROR
--version print the version - will not run the ui
~$
Fertig. Und was soll nun nicht funktionieren? Jemand, der programmieren will, muß sowas selbst hinbekommen.
Ich suche halt nach einer Methode, mit der ich die Pakete installieren kann und sie auch mit dem Kurzbefehl aufrufen kann, wie in Windows ("pyinstaller", "autopytoexe"). Würde das dann so funktionieren?
|
Alpha-Craft
(Themenstarter)
Anmeldungsdatum: 9. September 2021
Beiträge: 24
|
Oh. Als ich mich heute morgen angemeldet habe, hat der Befehl funktioniert. Vielleicht musste ich einfach die Sitzung neu starten. Da bin ich mir nicht sicher. Jedenfalls funktioniert es jetzt. Auf jeden Fall danke für eure Hilfe!
|