Difference between revisions of "Python"
From Alessandro's Wiki
Porcelinux (talk | contribs) (Created page with " == Pip == * update Pip version using pip itself pip install pip -U") |
Porcelinux (talk | contribs) |
||
Line 1: | Line 1: | ||
== Pip == | |||
* update Pip version using pip itself | |||
pip install pip -U | |||
= Advanced = | |||
== Virtual Environments == | |||
Package dependencies are sometimes incompatible to each other, so the solution is to create a isolated package tree shell to have a "clean" system for every package installation. | |||
In python it's the Virutal Environment | |||
* create: | |||
python3 -m venv new-env | |||
* | * activate | ||
source new-env/bin/activate |
Revision as of 08:39, 15 February 2022
Pip
- update Pip version using pip itself
pip install pip -U
Advanced
Virtual Environments
Package dependencies are sometimes incompatible to each other, so the solution is to create a isolated package tree shell to have a "clean" system for every package installation. In python it's the Virutal Environment
- create:
python3 -m venv new-env
- activate
source new-env/bin/activate