How to install ?!?

Help
ajsb
2004-09-06
2013-05-30
  • ajsb
    ajsb
    2004-09-06

    I downloaded PythonCE but
    i dont understand how can install
    it correctly...how is it installed ?

    TIA

     
    • Garry
      Garry
      2004-11-18

      (This reply is probably too late for you, but maybe it'll help others.)  I managed to install python and tkinter using the files Python-2.3.4-arm-PPC2003.zip and Tkinter-Files.zip dated 2004-07-21.  I'm not a windows ce expert or a python expert, so this isn't necessarily the best way to do it, but it worked for me:

      On your PocketPC, create the directory:
      \Program Files\Python\Lib

      Unzip Python-2.3.4-arm-PPC2003.zip on your desktop PC, and copy all of the files it contains to:
      \Program Files\Python\Lib
      on your Pocket PC.

      Using the PocketPC file explorer, click on the following shortcut:
      \Program Files\Python\Lib\Setup Registry
      Which runs the Setup Registry.py script and installs the necessary registry entires to associate .py files with python.

      Python is now installed.  You can run it by clicking on the python exectuable (ie. \Program Files\Python\Lib\python) or by clicking on any .py file in the file explorer.  You might also want to add it to your start menu, by selecting the executable in the file explorer, and choosing "copy" from the context menu, and then going to the directory:
      \Windows\Start Menu\Programs
      and choosing "paste shortcut" from the context menu.

      Note: one thing that confused me at this point, is that if python is already running, clicking a .py file in file explorer will switch to the existing instance of python but will not run the script you have clicked on.  If this happens, just exit the existing instance (by using Exit in the File menu) and try again.

      Installing Tkinter was a little more tricky, but should be easy if you follow these instructions.

      First unzip Tkinter-Files.zip on your desktop PC.

      The zip file contains the following directories:
      tcl8.4.3\library
      tcl8.4.3\tk8.4
      Windows

      You should copy the contents of these directories to the following directories on the PocketPC:

      tcl8.4.3\library -> \Program Files\Python\Lib\tcl8.4
      tcl8.4.3\tk8.4 -> \Program Files\Python\Lib\tk8.4
      Windows -> \Windows

      The only problem now was that python couldn't import Tkinter, because it's default module paths didn't include it.  There is probably a proper way to fix this, but I get around it by starting all of my Tkinter programs with:

      import sys
      sys.path += ['\\Program Files\\Python\\lib\\python23.zip\\lib-tk']

      from Tkinter import *

      Garry

       
    • Danny Staple
      Danny Staple
      2004-11-29

      Thanks for that. Might it be possibly something you can add to the setup registry file? I have no idea about environment variables on the pocket pc - or if they even exist.

       
    • vigorous_one
      vigorous_one
      2005-02-11

      Everything for the most part was straight forward except
      tcl8.4.3\library -> \Program Files\Python\Lib\tcl8.4

      which means
      tcl8.4.3\library\* -> \Program Files\Python\Lib\tcl8.4

      #a test application
      import sys
      sys.path += ['\\Program Files\\Python\\lib\\python23.zip\\lib-tk']
      from Tkinter import *
      # create a label widget and add it to the root window
      w = Label(0, text="Hello, world!") # 0 => no parent window
      w.pack()
      # start processing user events
      w.mainloop()

       
    • leo
      leo
      2006-03-16

      After installing all as mentioned it is impossible to run the script "Setup Registry" as
      it is a .py file not yet associated to intrepreter. A solution ? thanks

       
      • Luke Dunstan
        Luke Dunstan
        2006-03-17

        1. Run PythonCE
        2. execfile('\\program files\\python\\setup-registry.py')

         
    • leo
      leo
      2006-03-20

      Thanks for last info. Really the problem is that it's necessary to install Python in the default "Program Files" folder otherwise the Startup Registry file doesn't find the Python exe to execute ".py" files.

       
    • Snake
      Snake
      2006-03-21

      I was able to install python and the windows extensions on my pocket pc. But I wasn't able to install/build the win32com module. Any suggestions?