Simple Python [executable] version management, that is.

You are viewing a single thread.
View all comments
2 points

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.

permalink
report
reply
4 points

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.

permalink
report
parent
reply
3 points

This is a great feature

permalink
report
parent
reply
3 points

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

permalink
report
parent
reply
2 points

Ooh, thanks for mentioning asdf! I’ve heard of it, but didn’t realize it could that

permalink
report
parent
reply
2 points

AFAIU, asdf uses pyenv for its Python plugin, but rtx does it all just a little better.

permalink
report
parent
reply
3 points

indeed, worth linking it: https://github.com/jdxcode/rtx

permalink
report
parent
reply

Python

!python@programming.dev

Create post

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

📅 Events
Past

November 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
  • Pythörhead: a Python library for interacting with Lemmy
  • Plemmy: a Python package for accessing the Lemmy API
  • pylemmy pylemmy enables simple access to Lemmy’s API with Python
  • mastodon.py, a Python wrapper for the Mastodon API
Feeds

Community stats

  • 802

    Monthly active users

  • 468

    Posts

  • 2.4K

    Comments