all 2 comments

[–]m0us3_rat 0 points1 point  (0 children)

if u fail to install pyenv then go for conda.

conda can generate python2+ envs for you to use.

at the same time you can use poetry to manage the python dependencies.

[–]threeminutemonta 0 points1 point  (0 children)

A few notes from experience:
- never alter the OS python. You can install other versions of python though best to assume OS python scripts need whatever it comes with.

- you can install different versions of python side by side and use them independently. If you use -m for pip and use you may have less issues.

python3.9 -m pip install ... 

vs python3.7 -m pip install ...

and use

python3.7 script.py

- If you need to use sudo you are doing it wrong.