Installing python on maemo and Nokia N800

Python2.5 is needed when using pygtk on maemo, otherwise the default python2.3 may be enough.

Add "deb http://repository.maemo.org/extras bora free non-free" to /scratchbox/users/maemo/target/SDK_ARMEL/etc/apt/sources.list

Terminal code
  1. [sbox-SDK_ARMEL: ~] > fakeroot apt-get update   
  2. [sbox-SDK_ARMEL: ~] > fakeroot apt-get install python2.5*  

or: (if dependencies fail when install python2.5*, which contains lots of unnecessary packages)

Terminal code
  1. [sbox-SDK_ARMEL: ~] > fakeroot apt-get update   
  2. [sbox-SDK_ARMEL: ~] > fakeroot apt-get install python2.5-gtk2   
  3. [sbox-SDK_ARMEL: ~] > fakeroot apt-get install python2.5-dev   
  4. [sbox-SDK_ARMEL: ~] > fakeroot apt-get install python2.5-hildon   
  5. [sbox-SDK_ARMEL: ~] > fakeroot apt-get install python2.5-osso  

Do NOT remove python or python2.3 or python2.4 before install python2.5, since the python package from the repository is BROKEN. Once removed, never back ...


On N800, python2.5-runtime is needed.

Open Application catalogue (inside Tools, on the application's menu), and add following repositories:

Name: Maemo
Web address: http://repository.maemo.org
Distribution: bora
Components: free non-free

Name: Maemo Extras
Web address: http://repository.maemo.org/extras
Distribution: bora
Components: free non-free
 

Refresh package list, and then you'll see python2.5-runtime package, which will automatically pull all available python bindings, but not the development packages.

Or, just download python2.5 directly from below:

http://pymaemo.garage.maemo.org/installation.html

你可能感兴趣的:(html,Web,python,Nokia,Maemo)