this post was submitted on 11 Jan 2025
53 points (93.4% liked)

Python

6684 readers
5 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

πŸ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
πŸ’“ Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] 30p87@feddit.org 10 points 1 month ago (17 children)

So ... if I want to use a python module like, for example, mcstatus in a live shell for convenience I first need to create a venv, activate it, install the package and then use it? And then either have dozens of venvs somewhere or remake them every time?

[–] gigachad@sh.itjust.works 4 points 1 month ago (10 children)

I am not sure what you mean. Once you created a venv you can always reuse it.

[–] 30p87@feddit.org 6 points 1 month ago (9 children)

Yes, but it has to be somewhere. I don't want dozens of venv dirs in my homedir.

just to add to the other answers - no need to have them in your home dir (that sounds like it would suck). use a tool like uv tool or pipx , or just manually create any venv you need under a path you choose, say $HOME/.cache/venvs/

load more comments (8 replies)
load more comments (8 replies)
load more comments (14 replies)