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

Python

7030 readers
1 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
[–] [email protected] 11 points 3 months 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?

[–] [email protected] 3 points 3 months ago (10 children)

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

[–] [email protected] 7 points 3 months ago (9 children)

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

[–] cd_slash_rmrf 1 points 3 months ago

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)