Okay so i'm trying to deploy my application and I'm having loads of problems. File "/home/callumb/webapps/cf/lib/python3.3/django/db/backends/mysql/base.py", line 14, in <module> import MySQLdb as Database ImportError: No module named 'MySQLdb' So I get that error, if I then try to run pip install MySql-python I get this (it also happens with other packages I try and install):
Now i'm using python3.3 so i'm guessing this is the issue, any suggestions? (I also want to install more than just MySQL) asked 23 May '14, 14:21 wrux |
MySql-python does not support python 3 at the moment. You will need to install an other adapter like PyMySQL or cymysql. answered 23 May '14, 14:32 iliasr ♦♦ nope, still didn't work
(23 May '14, 14:54)
wrux
If it didn't work, please paste us both the command as well as any error/exception so we can give it a better look or open a support ticket.
(23 May '14, 15:06)
iliasr ♦♦
Is there a way I could just use a different version of python?
(23 May '14, 15:15)
wrux
Most users prefer python 2.7 or python 3.3 django installers, but you can use any python version you want to install packages, as we have python 2.4 to 3.4 installed on our servers. See our (related documentation](http://docs.webfaction.com/software/python.html#installing-python-packages).
(23 May '14, 15:33)
iliasr ♦♦
|
You have two problems here:
If you need mysql-python for your app, then I recommend you start over with a Python 2.7 based app. If you need to install packages with pip, then install pip with the correct version of Python, eg " answered 23 May '14, 15:37 seanf |