1👍
git clone https://github.com/PyMySQL/PyMySQL or download tarball.
for mysqldb:https://github.com/farcepest/MySQLdb1
untar it
run sudo python setup.py install
That’s all.
- [Django]-Create a nested serializer with Django Rest Framework, but without primary keys as identity
1👍
Guess it’s too late, but for the sake of the future googlers…
I had the same problem. To solve it I had to comment these lines:
if not hasattr(pkg_resources, '_distribute'):
if not no_fake:
_fake_setuptools()
raise ImportError
After this I was able to install MySQL-python via python setup.py install
.
- [Django]-How to locally install django third-party apps?
- [Django]-Django inheritance base class super
- [Django]-Relational DatabaseError in django postgresql database after deploying project to bitnami
1👍
The answer to this question appears to be version dependent. MySQLDb version 1.2.5 (newest version as of this writing) and later do not require distribute so python setup.py install
will work. Version 1.2.5 was released 01/2014 so this question is just that old.
- [Django]-Using Python 3.7 on Pycharm gives me: "Error: Django is not importable in this environment"
- [Django]-Django- Try sending email in python shell using send_mail(), but cannot work
- [Django]-Initializing objects belonging to ManyToManyField from data in-memory
- [Django]-Using the URLconf defined in first_project.urls, Django tried these URL patterns, in this order:
- [Django]-__name__ attributes of actions defined in <class 'astromatchapp.report.admin.user.ReportUserAdmin'> must be unique
Source:stackexchange.com