Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

not able to install mysqldb-python

119 views
Skip to first unread message

Arshpreet Singh

unread,
Jun 23, 2016, 8:11:31 AM6/23/16
to
I am trying to run django project in virtual environment. it needs mysql database library but when I try to install that it returns the error that configparser is not installed but I have installed configparser still the error remains same, is this ubuntu bug?


(env) ubuntu@ip-:~/clearapp$ pip install ConfigParser
Requirement already satisfied (use --upgrade to upgrade): ConfigParser in ./env/lib/python3.4/site-packages
(env) ubuntu@ip-172-31-56-59:~/clearapp$ pip install configparser
Requirement already satisfied (use --upgrade to upgrade): configparser in ./env/lib/python3.4/site-packages
(env) ubuntu@ip-172-31-56-59:~/clearapp$ pip install MySQL-python
Collecting MySQL-python
Using cached MySQL-python-1.2.5.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-rrhl9079/MySQL-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/tmp/pip-build-rrhl9079/MySQL-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rrhl9079/MySQL-python/
(env) ubuntu@ip-172-31-56-59:~/clearapp$

INADA Naoki

unread,
Jun 23, 2016, 9:03:11 AM6/23/16
to

Joaquin Alzola

unread,
Jun 23, 2016, 1:48:27 PM6/23/16
to
> ImportError: No module named 'ConfigParser'
It is telling you the error
This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or disclose its content but contact the sender immediately upon receipt.

Arshpreet Singh

unread,
Jun 24, 2016, 7:47:33 PM6/24/16
to
Thanks but somehow it fixed itself. :P now able to install mysql-python without any problem.

Chris Warrick

unread,
Jun 25, 2016, 3:47:30 AM6/25/16
to
> --
> https://mail.python.org/mailman/listinfo/python-list

It didn’t. mysql-python is installable with Python 2 only, so you
probably installed it for your system Python 2 install instead of your
Python 3 django virtualenv.
Either way, please use mysqlclient instead, as recommended by the
Django developers.

--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

Lawrence D’Oliveiro

unread,
Jun 26, 2016, 1:54:36 AM6/26/16
to
On Friday, June 24, 2016 at 5:48:27 AM UTC+12, Joaquin Alzola wrote:

> This email is confidential and may be subject to privilege. If you are not
> the intended recipient, please do not copy or disclose its content but
> contact the sender immediately upon receipt.

Sender, please consider yourself contacted!
0 new messages