Install xlrd module, Mysqldb module, and xlrdmysqldb in ubuntu
Install the xlrd module in Python
1. Download package from https://pypi.python.org/pypi/xlrd
2. decompress the downloaded package
3. Run CD to the decompressed directory and run sudo python setup. py install.
Install Mysqldb on ubuntu Server:
Sudo apt-get install python-mysqldb
The installation is successful, but the import MySQLdb prompts that this module cannot be found.
Sudo apt-get source python-mysqldb. If you want to compile it, it will always fail. An error is reported. It is estimated that the database is incomplete,
Sudo apt-get install python-all-dev
Sudo apt-get install libmysqlclient15-dev
Sudo apt-get install zlib1g-dev
Python xlrd module Installation Error
You do not need to import xlrd from xlrd import open_workbook
From the program below, you only need to import xlrd.
How to install python's MySQLdb module?
In what version of python do you use, 32-bit or 64-bit?