I installed Python 3.10 on Mac and installed some packages as well. But then I see AWS lamda does not support Python 3.10 so I decided to downgrade. I removed Python3.10 folder in Applications and cleared the trash. But still I see a folder named 3.10 in /Library/Frameworks/Python.framework/Versions which is causing problems, such as this:
$ python3 -m pip install virtualenv
Requirement already satisfied: virtualenv in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (20.14.1)
Requirement already satisfied: platformdirs<3,>=2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from virtualenv) (2.5.2)
So my question is how do I completely uninstall python 3.10 from my Mac?