I used python installer (downloaded from www.python.org) to install python3.8 & python 3.9. Is it possbile to switch them between different projects ? I don't think pyenv will work here (yet) because pyenv can only switch the versions installed by it. https://github.com/pyenv/pyenv/issues/1628 confirms this.
So for example, when run pyenv versions on my machine
➤ pyenv versions
* system (set by /Users/qiulang/.pyenv/version)
3.4.0
3.5.3
3.6.10
The system version there is python3.9.
Most of my python scripts need 3.8 because I used pip3 install the packages under 3.8.
I installed 3.9 to experience the latest feature but I don't won't 3.9 to be my default python3, otherwise I need to installed the packages all over again.
Now I can't find a way to do that so I had to change my script from
#! /usr/bin/env python3 to #! /usr/local/bin/python3.8 as a temporary solution.