Hacker News new | ask | show | jobs
by arcanemachiner 355 days ago
Create a virtual environment:

python3 -m venv venv

Activate the virtual environment:

source venv/bin/activate

Deactivate the virtual environment:

deactivate

1 comments

Or: `uvx ruff`

Which one is easier to run, especially for someone who doesn't use python everyday?

The one they definitely won't have to re-learn in a few years.
It's still easier if you use virtual environments so infrequently that you have to look up how to do it every time.
Oh, I am fine re-learning an equivalent of `uvx ruff` every few years, thats not too bad.