ImportError: Cannot connect to mysql next to No module named 'pymysql'

Asked 2 years ago, Updated 2 years ago, 20 views

Could you tell me how to deal with it?The environment is centos7, python 3.4.3.

.

■ error
ImportError: No module named'pymysql

■ Commands entered
import pymysql

■Installation method

pipe install PyMySQL

pip list results

PyMySQL (0.6.7)

python

2022-09-30 19:29

1 Answers

[Self-solving]
pip install PyMySQL instead
pip3install PyMySQL

I was able to do it.


2022-09-30 19:29

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.