Both of the following examples are based on a Django 1.7 / Python 3.4 app.
Example 1: ReportLab
$ pip3.4 install --user -U setuptools $ cd ~/webapps/APP $ PYTHONPATH=$PWD/lib/python3.4 pip3.4 install \ --install-option="--install-scripts=$PWD/bin" \ --install-option="--install-lib=$PWD/lib/python3.4" \ reportlab==3.1.8 $ python3.4 manage.py shell >>> import reportlab >>> reportlab.__file__ # to verify
Example 2: django-taggit
$ pip3.4 install --user -U setuptools $ cd ~/webapps/APP $ PYTHONPATH=$PWD/lib/python3.4 pip3.4 install -t $PWD/lib/python3.4 \ django-taggit $ python3.4 manage.py shell >>> import taggit >>> taggit.__file__ # to verify
The exact method to use depends on how the package is built.
No comments:
Post a Comment