Imprimir Comparte esta página


Install python core
aptitude install python[3] python[3]-dev

apt-get install python[3]-setuptools
easy-install pip[3]
3 is for python-3.

Install all the other required python modules with pip!

To backup a pip installation with all the installation files, use (either pip2 or pip3)
pip freeze > requirements.txt # list of packages
pip download -d DIR  -r  requirements.txt # download package list in  requirements.txt into DIR

When failed in some package either upgrade of uninstall until have a consisten backup

Recover the backup with:
pip install --no-index --find-links=DIR -r requirements.txt

WARNING: '_makerlib' errors may require:
apt-get install python3-virtualenv

Note that once the backup is setup in a server, it can be used to install a package in that backup
pip install --no-index --find-links=DIR package