How to Install and Uninstall python-pymysql Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: January 12,2025

1. Install "python-pymysql" package

Please follow the steps below to install python-pymysql on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install python-pymysql

2. Uninstall "python-pymysql" package

Please follow the guidance below to uninstall python-pymysql on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove python-pymysql $ sudo apt autoclean && sudo apt autoremove

3. Information about the python-pymysql package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: python-pymysql
Architecture: all
Version: 0.8.0-1
Priority: optional
Section: python
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 315
Depends: python:any (<< 2.8), python:any (>= 2.7.5-5~)
Suggests: python-pymysql-doc
Filename: pool/main/p/python-pymysql/python-pymysql_0.8.0-1_all.deb
Size: 60004
MD5sum: ef848d88985726c830f221a31006ebde
SHA1: d9bc96b29c5d654867896668220b5a48b7a2bef7
SHA256: 2fdf3b937d8453cfe3a63e51f0e57b49b721f2d301301112b1eaf725dabcb872
Homepage: https://github.com/PyMySQL/PyMySQL/
Description: Pure-Python MySQL driver - Python 2.x
Description-md5: 7a28add8b838554f2b512edd87a038d3
Supported: 5y