python - Importing PyMySQL - Stack Overflow
stackoverflow.com › questions › 45907400If it does try using ubuntu's terminal. Ctrl+Alt+T is a shortcut to do so. Then try either one of these commands to download PyMySQL for your version of python, after installing pip. sudo apt-get install python-pip sudo pip install PyMySQL sudo pip2 install PyMySQL sudo pip3 install PyMySQL Finally import the PyMySQL package. import pymysql Share