Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (6.1k points)
edited by

I had been trying to use PyMySQL on Ubuntu.

Recently I installed  pymysql using both the pip and pip3. However, when I am using the import pymysql, it gives me the ImportError: No module named 'pymysql'

My operating system is Ubuntu 15.10 64-bit and using Python 3.5.

The same .py works on the Windows with Python 3.5, but not on the Ubuntu.

1 Answer

0 votes
by (12.7k points)

This issue can be resolved by running the following command:

sudo apt-get install python3-pymysql

This will solve your errors !

Want to be a SQL expert? Come and join this SQL Certification by Intellipaat.

For more information visit :

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Nov 28, 2020 in SQL by Appu (6.1k points)
0 votes
1 answer

Browse Categories

...