#Python Packages
1 messages · Page 1 of 1 (latest)
:")
Ale you sure you want to install it system-wide? I never install nonstandard packages in system python. The solution with virtual env is not bad.
You must and should use venvs.
It takes 5 seconds to set up one.
I personally keep a folder in my ~/ called PythonProjects where i keep all my venvs
They're extremely simple, you need to know 2 or 3 commands at best
Run python3 -m venv /home/$USER/my/project/path/.venv
This will create a directory named .venv in your project folder. Then, simply activate it with source /home/$USER/my/project/.venv/bin/activate.
Done. Now install packages with pip and run your files with python3. To deactivate it simply run deactivate.
Note that you must either run your files while the venv is active or by passing your scripts to the interpreter in /home/$USER/my/project/path/.venv/bin/python3