pip -t: A simple and transparent alternative to virtualenv
jeudi 2 juillet 2015 à 18:13@jeekajoo shaarlinks 02/07/2015
"""
TL;DR
Often, virtualenv is overkill for the basic task of installing project dependencies and keeping them isolated. We present a simple alternative consisting of:
adding ./.pip to your PYTHONPATH
using pip install -t .pip to install modules locally
executing python from your project's root directory
"""
Bien sûr, le nom du dossier ".pip" est arbitraire.
Quand on se rend dedans on peut ensuite faire ceci:
"""
source env/bin/active
pip install <tonsuperpaquet>
deactivate
"""
Tout simplement.
Bien penser à setter le PYTHONPATH avec le dossier de travail utilisé (".pip" dans l'exemple présent)
(Permalink)
TL;DR
Often, virtualenv is overkill for the basic task of installing project dependencies and keeping them isolated. We present a simple alternative consisting of:
adding ./.pip to your PYTHONPATH
using pip install -t .pip to install modules locally
executing python from your project's root directory
"""
Bien sûr, le nom du dossier ".pip" est arbitraire.
Quand on se rend dedans on peut ensuite faire ceci:
"""
source env/bin/active
pip install <tonsuperpaquet>
deactivate
"""
Tout simplement.
Bien penser à setter le PYTHONPATH avec le dossier de travail utilisé (".pip" dans l'exemple présent)
(Permalink)
CAFAI Liens en Vrac 03/07/2015
Often, virtualenv is overkill for the basic task of installing project dependencies and keeping them isolated. We present a simple alternative
(Permalink)
(Permalink)