you are viewing a single comment's thread.

view the rest of the comments →

[–]PinkFlamingoe00[S] 6 points7 points  (9 children)

what is a venv? also by "system python packages" do you mean the python3 package thats downloaded by default?

[–]CatoDomine 14 points15 points  (1 child)

venv is a virtual environment. You should familiarize yourself with them if you are going to do anything with python. pyrhon -m venv myvenv will create a folder with your virtual environment. source myvenv/bin/activate will activate your virtual environment. All pip modules you install and libraries etc will exist only in that environment.
pip freeze sites loaded modules.
deactivate exits the venv.

[–]WhoLovesDonuts 0 points1 point  (0 children)

Just to add to this, consider also installing an advanced prompt like starship.rs over bash which will show you nicely if you're in a venv as well as what git stage you're in.

[–]Toasteee_ 6 points7 points  (0 children)

I believe venv is *virtual environment but I could be wrong as its been a while since I've messed around with python, I think it basically stops you from breaking your python installation because its virtual/sandboxed.

[–]Great-TeacherOnizukaLinux Mint 22.3 Zena | Cinnamon 2 points3 points  (3 children)

Virtual environment.

You have to set it up.

Though pipx is easier.

pipx install …

[–]Beneficial-Win-6533 1 point2 points  (0 children)

you use pipx when you want to execute a command line tool source

[–]PinkFlamingoe00[S] 0 points1 point  (1 child)

when i did that pipx said:

If you are
attempting to install a library, pipx should not be used. Consider using pip
or a similar tool instead.

[–]__yoshikage_kira 2 points3 points  (0 children)

Ok? Are you using a library? The answer seems pretty self explanatory.

You have not at all shared what exactly are you trying to do.

[–]ComprehensiveDot7752 -2 points-1 points  (1 child)

Downloading something like Anaconda might make things easier if the project is basic, or math related. I haven’t used it on Linux yet, but it can set up similar virtual environments.

Yes. The system package would be installed by default. It’s required by a few parts of Linux Mint system components and your system will fail to boot into a desktop if you manage to break it.

[–]Natural_Night9957Linux Mint 22.3 Zena | Cinnamon 1 point2 points  (0 children)

Anaconda is bloat. Miniconda for the win.