pyinstaller

Does pyinstaller have any parameters like gcc -static?

守給你的承諾、 提交于 2020-08-03 06:18:14
问题 I have a similar question to this : Is there a way to compile a Python program to binary and use it with a Scratch Dockerfile? In this page, I saw that someone said that a C application runs well when compiled with -static . So I have a new question: does pyinstaller have any parameters like gcc -static to make a python application run well in a Scratch Docker image? 回答1: The -F and --onefile parameters should do what you are looking to do. You'll likely want to take a look at your specs file

Does pyinstaller have any parameters like gcc -static?

谁说我不能喝 提交于 2020-08-03 06:15:59
问题 I have a similar question to this : Is there a way to compile a Python program to binary and use it with a Scratch Dockerfile? In this page, I saw that someone said that a C application runs well when compiled with -static . So I have a new question: does pyinstaller have any parameters like gcc -static to make a python application run well in a Scratch Docker image? 回答1: The -F and --onefile parameters should do what you are looking to do. You'll likely want to take a look at your specs file

How to create menu item in OSX Menubar using Pyinstaller packaged Kivy Python application?

 ̄綄美尐妖づ 提交于 2020-08-03 03:07:42
问题 To achieve sense of nativeness in my Pyinstaller packaged Kivy Python application, I would like to create menu item in OSX menu bar. If using PyQt, I can easily achieve this. But as I am using Kivy, it seems like I have to resort to other ways. Any suggestion? I guess it will be in the range of PyObjc or AppleScript. Not sure though. 回答1: I guess this is more to Pyinstaller question that it is as Kivy question. It's neither :) PyInstaller just wraps the python application into a native

How to create menu item in OSX Menubar using Pyinstaller packaged Kivy Python application?

僤鯓⒐⒋嵵緔 提交于 2020-08-03 03:06:44
问题 To achieve sense of nativeness in my Pyinstaller packaged Kivy Python application, I would like to create menu item in OSX menu bar. If using PyQt, I can easily achieve this. But as I am using Kivy, it seems like I have to resort to other ways. Any suggestion? I guess it will be in the range of PyObjc or AppleScript. Not sure though. 回答1: I guess this is more to Pyinstaller question that it is as Kivy question. It's neither :) PyInstaller just wraps the python application into a native

How to use pyinstaller with pipenv / pyenv

試著忘記壹切 提交于 2020-08-02 05:07:15
问题 I am trying to ship an executable from my python script which lives inside a virtual environment using pipenv which again relies on pyenv for python versioning. For that, I want to us pyinstaller. What I did: pipenv install pyinstaller pyinstaller --onefile my_script.py Output: 40 INFO: PyInstaller: 3.5 40 INFO: Python: 3.6.9 41 INFO: Platform: Linux-4.15.0-65-generic-x86_64-with-debian-stretch-sid 42 INFO: wrote /home/matthaeus/cybathlon/planvec/qt_video_gui_example.spec 44 INFO: UPX is not

How to use pyinstaller with pipenv / pyenv

寵の児 提交于 2020-08-02 05:06:27
问题 I am trying to ship an executable from my python script which lives inside a virtual environment using pipenv which again relies on pyenv for python versioning. For that, I want to us pyinstaller. What I did: pipenv install pyinstaller pyinstaller --onefile my_script.py Output: 40 INFO: PyInstaller: 3.5 40 INFO: Python: 3.6.9 41 INFO: Platform: Linux-4.15.0-65-generic-x86_64-with-debian-stretch-sid 42 INFO: wrote /home/matthaeus/cybathlon/planvec/qt_video_gui_example.spec 44 INFO: UPX is not

How to include dependencies from venv directory when running pyinstaller for project built in Pycharm?

我的梦境 提交于 2020-08-01 16:45:56
问题 I'm new to Python and PyCharm. I'm running on OSX High Sierra. I've created a project in PyCharm that uses lxml. I've installed lxml 4.1.1 as a project dependency, and I can see it's files under myProject/venv/lib/site-package/lxml I can run my script from within PyCharm no problem, but I've been unable to build an executable that includes the lxml library. I use pyinstaller 3.3.1 from the command line. The project builds, but when I run the executable, I get his for output: Traceback (most

How to include dependencies from venv directory when running pyinstaller for project built in Pycharm?

落爺英雄遲暮 提交于 2020-08-01 16:40:16
问题 I'm new to Python and PyCharm. I'm running on OSX High Sierra. I've created a project in PyCharm that uses lxml. I've installed lxml 4.1.1 as a project dependency, and I can see it's files under myProject/venv/lib/site-package/lxml I can run my script from within PyCharm no problem, but I've been unable to build an executable that includes the lxml library. I use pyinstaller 3.3.1 from the command line. The project builds, but when I run the executable, I get his for output: Traceback (most

pyinstaller 2.0 - How to add descriptions for a windows exe file?

泄露秘密 提交于 2020-07-30 02:28:29
问题 How can I add descriptions like version, copyright, file description etc. to a single file (exe) python pyinstaller.py -F -w -i favicon.ico C:\Projekte\Eclipse\MyApp\app.pyw 回答1: --version-file=versioninfo.txt Example: PATH_TO\PyInstaller-2.1\tests\basic\test_pkg_structures-version.txt Read the Manual "Capturing Version Data". 回答2: I recomend to you that read this thread, Comprehensive tutorial on Pyinstaller?. Would be help to you. By the other hand, I used py2exe, if you use py2exe is most

pyinstaller 2.0 - How to add descriptions for a windows exe file?

北慕城南 提交于 2020-07-30 02:27:28
问题 How can I add descriptions like version, copyright, file description etc. to a single file (exe) python pyinstaller.py -F -w -i favicon.ico C:\Projekte\Eclipse\MyApp\app.pyw 回答1: --version-file=versioninfo.txt Example: PATH_TO\PyInstaller-2.1\tests\basic\test_pkg_structures-version.txt Read the Manual "Capturing Version Data". 回答2: I recomend to you that read this thread, Comprehensive tutorial on Pyinstaller?. Would be help to you. By the other hand, I used py2exe, if you use py2exe is most