close

[Solved] Python 3 ImportError: No module named ‘ConfigParser’

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Python 3 ImportError: No module named ‘ConfigParser’ in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Python 3 ImportError: No module named ‘ConfigParser’ Error Occurs?

Today I get the following error Python 3 ImportError: No module named ‘ConfigParser’ in python.

How To Solve Python 3 ImportError: No module named ‘ConfigParser’ Error ?

  1. How To Solve Python 3 ImportError: No module named 'ConfigParser' Error ?

    To Solve Python 3 ImportError: No module named 'ConfigParser' Error You can instead use the mysqlclient package as a drop-in replacement for MySQL-python. It is a fork of MySQL-python with added support for Python 3.

  2. Python 3 ImportError: No module named 'ConfigParser'

    To Solve Python 3 ImportError: No module named 'ConfigParser' Error You can instead use the mysqlclient package as a drop-in replacement for MySQL-python. It is a fork of MySQL-python with added support for Python 3.

Solution 1

If you are using CentOS, then you need to use

  1. yum install python34-devel.x86_64
  2. yum groupinstall -y 'development tools'
  3. pip3 install mysql-connector
  4. pip install mysqlclient

Solution 2

You can instead use the mysqlclient package as a drop-in replacement for MySQL-python. It is a fork of MySQL-python with added support for Python 3.

I had luck with simply

pip install mysqlclient

in my python3.4 virtualenv after

sudo apt-get install python3-dev libmysqlclient-dev

which is obviously specific to ubuntu/debian, but I just wanted to share my success 🙂

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read