ImportError: No module named mysql.connector using Python2

前端 未结 12 2077
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-13 06:26

I have two files. The first one has the connection and the getting of data. I import mysql.connector. This file is called tasksSql.py

def get_users():
    im         


        
12条回答
  •  佛祖请我去吃肉
    2020-12-13 07:01

    I used the following command to install python mysql-connector in Mac. it works

    pip install mysql-connector-python-rf

提交回复
热议问题