LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-02-2010, 02:15 AM   #1
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Rep: Reputation: 31
Installing py2exe on Debian


I'm running Debian 5.0. I've been following the tutorial here http://www.py2exe.org/index.cgi/Tutorial but it seems I can't get it to work. I'm guessing, Python didn't come with the Distutils that I need. I've search the repositories and the On-line debian package database, but can't find a Distutils package, I've installed python-dev, but that still appears to not contain the module for py2exe.
 
Old 05-03-2010, 11:56 AM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
On the front page of the py2exe website:

Quote:
py2exe is a Python Distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation.
 
Old 05-03-2010, 12:20 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,512

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
..... py2exe will work on Windows only. Is a Windows program.

You can Google .. py2exe on linux .. http://www.google.com/linux

http://www.google.com/linux?hl=en&q=...ux&btnG=Search

.. May be some suggestions ?
..
 
Old 05-03-2010, 05:30 PM   #4
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Original Poster
Rep: Reputation: 31
Oh, I knew py2exe made Windows exe's (that is what I want), but didn't realize I can't make them from Linux.

Okay, here's my problem: I've only got a computer running Linux. I have a small program written in Python, just using Tkinter. I need to run the program on some Windows machines, but I can't install Python, nor py2exe, on those machines.

Can I somehow load Python for Windows + my Python script on a USB and run Python from the USB without installing Python?
 
Old 12-26-2010, 10:02 AM   #5
pmav99
LQ Newbie
 
Registered: Nov 2007
Posts: 1

Rep: Reputation: 0
Just for the record.

You could always try with the portable version of python. Just google it.
 
Old 12-26-2010, 12:28 PM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by pmav99 View Post
Just for the record.

You could always try with the portable version of python. Just google it.
I don't understand.

Even if it ran on Linux, it still generates Windows executables. Making it run on a different platform will not magically transform its function.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
py2exe, exe-file has stopped working!? raskol Programming 1 04-13-2008 09:14 AM
LXer: Installing Debian Etch From A Windows System With "Debian-Installer Loader" LXer Syndicated Linux News 0 09-28-2007 12:41 AM
py2exe error FedoraUsr Programming 5 08-14-2005 09:36 PM
Installing Debian curly08 Debian 6 05-02-2005 03:47 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration