0
sudo easy_install pip

I used its code and it loaded successfully.Then I opened visual studio on the terminal

pip install mysql-connector

I used the code, but it gives an error

ImportError: No module named typing

please help

2
  • what version of python are you using Commented May 7, 2021 at 16:32
  • @KetZoomer python 3.9 says installed but not found when I want to learn python version Commented May 7, 2021 at 16:36

1 Answer 1

0

use

pip install mysql-connector-python

and in your code

import mysql.connector
Sign up to request clarification or add additional context in comments.

14 Comments

i run python 3.94 and run the pip again. but it is alt´ready installed, try to update pip
i run the code also in the terminal of vs code. the same result
try also stackoverflow.com/questions/24272223/… or there are a lot more mysql conmctor like pymaysql and other try your luck with them
where else can I use mysql connector
first try the link in the comment and then stackoverflow.com/questions/372885/…
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.