Hacker News new | ask | show | jobs
by atemerev 1182 days ago
How do you manage python versions with venv? E.g. numba still doesn’t run on my system python 3.11, so I want a 3.10 somewhere, but can’t install it through a package manager, etc.
1 comments

If using apt, you can add the deadsnakes repository which allows installing the other versions of python3 not included with your linux distro. Then you can install them with

  sudo apt install python3.X
I also recommend similarly

  sudo apt install python3.X-venv
which allows you to create venvs with whichever python version you have installed

  python3.X -m venv .venv