reshefm
reshefm

Reputation: 6167

Micropython or minimal python installation

I once read about minimal python installation without a lot of the libraries that come with the python default installation but could not find it on the web...

What I want to do is to just pack a script with the python stuff required to execute it and make portable.

Does any one know about something like that?

Thanks

Upvotes: 9

Views: 17804

Answers (4)

ʇsәɹoɈ
ʇsәɹoɈ

Reputation: 23479

Micro Python is actively maintained and has been ported to a bunch of microcontrollers.

For other small implementations, you might also want to check out tinypy or PyMite.

If you don't care about size, but really just want an easy way to distribute a python program, consider PyInstaller or one of the others on this list.

Upvotes: 7

Massimo
Massimo

Reputation: 3470

You can also look for already installed instances.

OpenOffice / LibreOffice

Look at the environment variable UNO_PATH or into the default install directories, for example for Windows and LO5

%ProgramFiles(x86)%\LibreOffice 5\program\python.exe

Gimp

look into the default install directories, for example for Windows

C:\Program Files\GIMP 2\Python

and so on...

Upvotes: 2

pfalcon
pfalcon

Reputation: 6987

There's now finally Micro Python, claiming to be full reimplementation of Python 3 core, fitting even into medium-size 32bit microcontrollers. API will be different of course, so C modules will require porting. Project is funded via KickStarter, source code will be released some time after the campaign (request for consideration was made to author to not delay release of the source, to help bootstrap Micro Python community sooner).

http://micropython.org/

Upvotes: 2

blokeley
blokeley

Reputation: 7065

Portable python might do what you want. It's a python installation for USB thumb drives.

Upvotes: 2

Related Questions