Python Forum
the exe file by generated by pyinstaller ,can't get the PYTHONPATH
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
the exe file by generated by pyinstaller ,can't get the PYTHONPATH
#11
(Jan-14-2020, 07:09 AM)roger2020 Wrote: I generate the exe file in linux server, and usr it in linux , not windows!
Hats off to you!!!

https://en.wikipedia.org/wiki/.exe

On linux pyinstaller will produce standalone binary executable, but not exe file (which is standalone executable on windows platform). And that is assuming you use --onefile option
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#12
(Jan-13-2020, 03:15 PM)buran Wrote: In addition - according to your initial post you generate an exe (i.e. Windows executable). Then you introduce the fact you work on linux server. If you want to build executable for linux you must run pyinstaller on the target system and generate the binary there, i.e. windows exe will not run on the linux server.

I found the pyinstaller change the PYTHONPATH when generating the exe file

(Jan-14-2020, 07:23 AM)buran Wrote:
(Jan-14-2020, 07:09 AM)roger2020 Wrote: I generate the exe file in linux server, and usr it in linux , not windows!
Hats off to you!!!

https://en.wikipedia.org/wiki/.exe

On linux pyinstaller will produce standalone binary executable, but not exe file (which is standalone executable on windows platform). And that is assuming you use --onefile option
U are right,I use the -F (like --onefile) option!! Thumbs Up
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to set PYTHONPATH in Visual Studio Code? aupres 5 4,215 Aug-15-2023, 03:51 PM
Last Post: snippsat
  Using pyinstaller with .ui GUI files - No such file or directory error diver999 3 3,368 Jun-27-2023, 01:17 PM
Last Post: diver999
  HOW TO USE C# GENERATED DLL davide_vergnani 2 1,649 Jun-12-2023, 03:35 PM
Last Post: davide_vergnani
  Formating generated .data file to XML malcoverc 3 1,357 Apr-14-2022, 09:41 PM
Last Post: malcoverc
  Pyinstaller distribution file seems too large hammer 4 2,726 Mar-31-2022, 02:33 PM
Last Post: snippsat
  How to add product details in exe generated by pyinstaller arex786 1 8,493 Oct-10-2021, 11:00 AM
Last Post: Sran012
  problem with pyinstaller to create an executable file atlass218 0 2,574 May-15-2021, 11:01 AM
Last Post: atlass218
  Pyinstaller create this error :“File ”multiprocessing\connection.py“, line 691 Formationgrowthhacking 2 3,634 Apr-30-2020, 10:26 AM
Last Post: buran
  Pyinstaller exe file permissions Rainbow_Crash 1 3,187 Jul-11-2019, 04:53 PM
Last Post: SheeppOSU
  How to embed mp3 file with Pyinstaller panoss 2 5,938 Apr-01-2019, 01:13 PM
Last Post: yleongtyl

Forum Jump:

User Panel Messages

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