Both Python 2 and Python 3 installed on MacOS, but pip command install libraries only for Python 3

Then use whatever the Python 2 command is called on your system.