I suggest you start here:
https://opensource.com/article/19/5/python-3-default-mac#what-to-do
the basic advice is "install pyenv", then use pyenv-virtualenv.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: