pyenv

Introduced to me through reading Brian Chen’s blog for installing ROS2 on Mac. Can’t believe I didn’t know about this earlier. Shows that I am a Terrible Programmer.

Resources:

The fundamental issue: To install a package into your system Python, you have to run sudo pip install.

However, this means that you’re installing the Python package globally, which is a real problem if another user comes along and wants to install a slightly older version of the package.

But conda exists...

ummmmm i’m debating right now. I think I am just misusing conda, not leveraing it properly. Because conda can handle different package versions, as well as different environments.

https://fathomtech.io/blog/python-environments-with-pyenv-and-vitualenv/ https://codesolid.com/conda-vs-pip

Install a python version

pyenv install 3.10.9

List python versions

pyenv versions