Does mysql need to be installed locally to connect remote mysql databases with python on mac?

  mysql, question

I want to connect mysql database on virtual machine on mac.
The mysql interface image of python is installed on the materials found on the Internet.mysql-pythonMysql database must be installed first, can you not install the database?
LikeSquel ProThis kind of database tool does not need to install the database on this machine.

pip install MySQL-pythonReport an error