Python modules on different devices -


so have been taking few classes on python , whole time, wondering modules. can install them , run them eclipse if compile program, if has 'exe' extension, how module react on computer doesn't have installed.

example: if made random little thing pygame. installed pygame module on computer, made application pygame module , compiled executable, how other computer run file on. or not work @ all?

python modules executable - don't compile them. if want run them on computer, can install python , other dependent module such pygame on computer, copy scripts on , run them.

python has many ways wrap scripts installer work you. common use python distutils write setup.py file handles install. there can use setup.py bundle scripts zip files, tarballs, executables, rpms, etc... other machines. can document user needs make stuff go or can use pip or distribute write dependency files automatically install pygame (and etc...).

there many ways handle , not particularly easy first time round. starters, read on distutils in standard python docs , google pip installer.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

php - Dynamic url re-writing using htaccess -

java - Multi-Label Document Classification -