I just started learning about Python (on macOS Mojave). I downloaded the latest version of Python and wanted to download software libraries like pandas.

So firstly I downloaded pip like that: sudo easy\_install pip

Then I installed pandas using pip, however pandas location is: Requirement already satisfied: pandas in ./Library/Python/2.7/lib/python/site-packages (0.24.2)

However, my Pythons location is:
Location of Python 3.8.2:
'/Library/Frameworks/Python.framework/Versions/3.8/bin/python3'

Also when I try importing pandas in the python command I get this:
ModuleNotFoundError: No module named 'pandas'

Therefore, it seems that pip has installed pandas to the old version of Python. How can I fix that? Or is that even the problem? Again I am totally new to this and I don't come from a cs background. Please help.