Python - Virtualenv
·1 min
- Install:
python -m pip install --user virtualenv
- Create env:
python -m venv env
. (Replacevenv
withvirtualenv
for python2.) - Start:
source env/bin/activate
- Check Python:
which python
- Run pip:
pip install -r requirements.txt
- Resolve dependencies:
pip install .
. (Avoid callingsetup.py
directly.) - Close:
deactivate