英文:
importing mysql connector for python in visual studio code
问题
I want to import mysql connector for python in visual studio code but it is giving error like this:
ModuleNotFoundError: No module named 'mysql.connector'
what should I do??
I am trying to get the python connectivity for that, I want to know the answer to this question.
英文:
I want to import mysql connector for python in visual studio code but it is giving error like this :
ModuleNotFoundError: No module named 'mysql.connnector'
what should I do??
I am tring to getting the python connnectivity for that ,I want know answer of this quetion .
答案1
得分: 0
你首先需要通过PIP安装它。
pip install mysql-connector-python
然后,你可以在你的代码中使用它。
from mysql.connector
在这里查找更多信息:
https://pypi.org/project/mysql-connector-python/
https://dev.mysql.com/doc/connector-python/en/connector-python-introduction.html
英文:
You have to install it first through PIP.
pip install mysql-connector-python
Then you can use this in your code
from mysql.connector
Find more here:
https://pypi.org/project/mysql-connector-python/
https://dev.mysql.com/doc/connector-python/en/connector-python-introduction.html
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论