Python virtual environments

How many times have you run into pip install complaining about needing root access? With the latest versions of Python, you can easily create a virtual environment and I think it makes sense to create one in your home directory.

[cbrake@ceres ~]$ python -m venv pybrake
[cbrake@ceres ~]$ . pybrake/bin/activate
(pybrake) [cbrake@ceres ~]$ pip install gpt4all
Collecting gpt4all
  Downloading gpt4all-1.0.8-py3-none-manylinux1_x86_64.whl (4.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/4.2 MB 10.5 MB/s eta 0:00:00
...
(pybrake) [cbrake@ceres ~]$ deactivate 
[cbrake@ceres ~]$

venv is cool I have been using it for long now.