No module named flask.ext.mysql

No module named flask.ext.mysql

Postby iFunction » Tue Sep 20, 2016 8:54 am

Hi,

Trying to follow this tutorial: https://code.tutsplus.com/tutorials/cre ... -cms-22972

Yet there is an issue with importing MySQL and after scouring the internet, I have not found an answer to this. Is there a way I can find this module manually so I can at least check I have the correct syntax for this, as nothing I am doing will sort this out. I have even been to the official documentation: http://flask-mysql.readthedocs.io/en/la ... stallation and tried that way, but that does not work either, Python simply can't find the module.

I suspect it is on my computer somewhere as I have tried installing this in all the ways described, so I am guessing either the path is incorrect, or maybe it has installed into the wrong place.

where would I be able to find out the location of where this is supposed to be and where it might be in order to sort this out please.

Regards
iFunction
 
Posts: 41
Joined: Mon Apr 04, 2016 2:33 pm

Re: No module named flask.ext.mysql

Postby iFunction » Tue Sep 20, 2016 9:10 am

Ok, I think I have found part of the problem, but don't know how to fix it. So I have all the correct modules installed, but they are all installed for Python2 but not python3. Is there a way to fix this?
iFunction
 
Posts: 41
Joined: Mon Apr 04, 2016 2:33 pm

Re: No module named flask.ext.mysql

Postby iFunction » Fri Sep 23, 2016 10:34 am

Solved this by using pip3.
iFunction
 
Posts: 41
Joined: Mon Apr 04, 2016 2:33 pm


Return to Web Development

Who is online

Users browsing this forum: No registered users and 2 guests