Answer the question
In order to leave comments, you need to log in
How to properly install Mysql for pip3.5?
when running the server python3.5 manage.py runserver , the following pops up. mistake
....................
File "/usr/local/lib/python3.5/site-packages/django/db/backends/mysql/base.py", line 28, in <module>
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named 'MySQLdb'
[email protected]:~/Numero_Project/turon-out.pro$ sudo pip3.5 install MySQl-python
The directory '/home/alexander/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/alexander/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied (use --upgrade to upgrade): MySQl-python in /usr/local/lib/python2.7/dist-packages
Answer the question
In order to leave comments, you need to log in
i downloaded mysqlclient-1.3.7-cp27-none-win_amd64.whl
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question