Python3 Installing the MySQL module

Source: Internet
Author: User
Tags sqlite database

PIP3 install MySQL

1. Error 1

Cause: After the Python 3.x version, configparser.py has been renamed configparser.py so error!

Solution, the module CP is a configparser.py

2.

Find/-name Mysql_config No

You need to install Yum install Mysql-devel and then install MySQL (PIP3 installed MySQL)

The installation was successful, but Python3 still could not use MySQL, because Python does not support the MySQLdb module and needs to use other modules, so the above content is meaningful to python2.

Python3 installing MySQL-related modules

Using the SQLite database

Solve the problem of no module named _sqlite3

Http://stackoverflow.com/questions/10784132/django-no-module-named-sqlite3

Http://stackoverflow.com/questions/1210664/no-module-named-sqlite3

Python3 Installing the MySQL module

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.