DEV Community

Cover image for pyenv - manage python versions
Stefan Alfbo
Stefan Alfbo

Posted on

2

pyenv - manage python versions

I wish that I new about pyenv when I started to programming in Python.

This tool makes it easy to manage and switch between different Python versions and environments.

To install it make sure that all prerequisites are met. Then use the pyenv-installer project like this to get the tool installed:

curl https://pyenv.run | bash
Enter fullscreen mode Exit fullscreen mode

When pyenv is available on your machine you can easily create a new virtual Python environment for your next project:

pyenv virtualenv 3.10.0 my_new_project
Enter fullscreen mode Exit fullscreen mode

This will create a new environment named, my_new_project, that is using the version 3.10.0 of Python.

And to activate the environment:

pyenv activate my_new_project
Enter fullscreen mode Exit fullscreen mode

There are many more features provided by the pyenv-tool that can be explored, read more at GitHub.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more →

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

đź‘‹ Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay