Python

From 太極
Revision as of 14:31, 1 March 2013 by Brb (talk | contribs)
Jump to navigation Jump to search

Install a new module

The Python Package Index (PyPI) is the definitive list of packages (or modules

sudo apt-get install python-serial

If a package has been bundled by its creator using the standard approach to bundling modules (with Python’s distutils tool), all you need to do is download the package, uncompress it and type:

python setup.py install

How to run a python code

python mypython.py