this post was submitted on 04 Jul 2023
20 points (95.5% liked)

Python

6153 readers
86 users here now

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

πŸ“… Events

October 2023

November 2023

PastJuly 2023

August 2023

September 2023

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

founded 1 year ago
MODERATORS
 

Simple Python [executable] version management, that is.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago (6 children)

Another useful Python version manager is asdf with python plugin. The most helpful feature of asdf is ability to specify what Python version to use in certain directory by simply placing a .tool-versions file (contains the version number to use) in that directory. This makes working with multiple projects that requires different version of Python very seamless.

[–] [email protected] 4 points 1 year ago (2 children)

pyenv also has this with the .python-version file which will switch versions. And with the plugin, you can use virtualenvs in pyenv so that a .python-version can be simply: my-cool-project-virtualenv and switching to that directory automatically switches to it.

[–] [email protected] 3 points 1 year ago

This is a great feature

[–] [email protected] 3 points 1 year ago

Automatically switching to virtual environment seems like an even useful thing to me. Thanks for mentioning it.

load more comments (3 replies)