4 ms·
python -m venv venv source venv/bin/activate pip install -U pip pip install whatever # <do you stuff here> deactivate no need any third-par
by ausjke 7y ago
python -m venv venv
source venv/bin/activate
pip install -U pip
pip install whatever
# <do you stuff here>
deactivate
no need any third-party tools, venv is built-in the above steps always worked for me out of the box.
- snypox 7y agoBut how about replacing all of these commands with two words? poetry install
- ausjke 7y agowhich is another layer of abstraction and dependency that I do not really need, e.g poetry no longer maintained, poetry(or whatever) has an urgent bugfix,etc
- sjustinas 7y agoDo you not consider pip third-party? It does not come with the standard Python distribution. Although `ensurepip` does.
- oefrha 7y agoNo, pip has been available in standard Python distributions since 3.4.[1] Distributions that don't come with pip (e.g. some Linux distro packages) are non-standard. [1] https://docs.python.org/3/whatsnew/3.4.html#whatsnew-pep-453 https://docs.python.org/3/whatsnew/3.4.html#whatsnew-pep-453