Python Forum
How to provide python scripts to someone without python installed
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to provide python scripts to someone without python installed
#10
This is an example of using cx_freeze on the sample file SimpleTkApp.py and its setup.py provided with cxfreeze using python 3.
  • The sample folder is located at C:\Python34\Lib\site-packages\cx_Freeze\samples\Tkinter.
  • Open a command prompt and enter > cd /d C:\Python34\Lib\site-packages\cx_Freeze\samples\Tkinter
  • The previous line sets the working directory to C:\Python34\Lib\site-packages\cx_Freeze\samples\Tkinter.
  • Enter > py -3 setup.py install
  • The .exe will be created and located in folder C:\Python34\Lib\site-packages\cx_Freeze\samples\Tkinter\build\exe.win32-3.4
  • Double click the SimpleTkApp.exe located in the folder in the previous line to test it worked.

To do this on your own file copy the setup.py file to the location of your py file, alter the setup.py to suit your .py file ie change 'SimpleTkApp.py' to your .py name
executables = [
    Executable('SimpleTkApp.py', base=base)
]
Follow the above substituting the file path to your .py folder.
Reply


Messages In This Thread
RE: Need a question answered - by Yoriz - Dec-15-2016, 07:21 PM
RE: Need a question answered - by micseydel - Dec-15-2016, 07:22 PM
RE: Need a question answered - by Larz60+ - Dec-15-2016, 07:35 PM
RE: Need a question answered - by micseydel - Dec-15-2016, 07:36 PM
RE: Need a question answered - by Ofnuts - Dec-15-2016, 11:18 PM
RE: Need a question answered - by jak123456 - Dec-16-2016, 08:04 AM
RE: Need a question answered - by Larz60+ - Dec-16-2016, 10:43 AM
RE: How to provide python scripts to someone without python installed - by Yoriz - Dec-17-2016, 04:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Launcher (on Windows) only necessary when 2 or more Python versions installed? pstein 1 333 Feb-17-2024, 12:43 PM
Last Post: deanhystad
  Trying to us python.exe from our network to run scripts cubangt 3 879 Aug-17-2023, 07:53 PM
Last Post: deanhystad
  output provide the filename along with the input file processed. arjunaram 1 947 Apr-13-2023, 08:15 PM
Last Post: menator01
  Randomizer script to provide options based on user and priority cubangt 10 2,471 Mar-11-2022, 07:22 PM
Last Post: cubangt
  Installed versions of Python SamHobbs 5 2,541 Sep-02-2021, 02:28 PM
Last Post: jefsummers
  Running python scripts from github etc pacmyc 7 3,732 Mar-03-2021, 10:26 PM
Last Post: pacmyc
  I seem to have two versions of python 3.7.9 installed miner_tom 7 4,483 Nov-22-2020, 06:42 PM
Last Post: miner_tom
  Reading SQL scripts from excel file and run it using python saravanatn 2 2,585 Aug-23-2020, 04:49 PM
Last Post: saravanatn
  No Scripts File present after python installation ag2207 5 4,928 Jul-30-2020, 11:11 AM
Last Post: buran
  Package installed through Anaconda "not found" by Python zonova 0 2,314 May-08-2020, 11:50 PM
Last Post: zonova

Forum Jump:

User Panel Messages

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