from flask_mysqldb import MySQL gives import error : ImportError: No module named flask_mysqldbinstalling ecdsaI Get 'Import error : No module named MYSQLdb' in python 2.7. I've tried everything from the other similar threadBackintime won't start (no module named dbus)How to use the ansible.runner module on Ubuntu 14.04.5?PlayOnLinux won't launchImportError: Ubuntu 16.04.3 - Installing basemap module on python 2.7.12Calling .py script from .sh script error “ImportError: No module named apiclient.discovery”
Translation Golf XLIX - An Accurate Shot
What is the difference between an axiom and a definition?
How to use FDE without needing to share the encryption password
Is writing recommendation letter job for a faculty required?
Why does Smaug have 4 legs in the 1st movie but only 2 legs in the 2nd?
An historical mystery : Poincaré’s silence on Lebesgue integral and measure theory?
Speaking German abroad and feeling condescended to
Printing the bits of an integer using bitfields and union
MS in Mathematics, having trouble finding work outside teaching algebra
Improving the observation skill & making less blunders
Meaning of "Nur so anbei."
Possible executive assistant job scam
How to start toward financial independence
Does quickening a spell change the kind of action it grants?
What is this sound, instrument? (Rheingold, Wagner)
Check the validity of a 10-digit telephone number
Can we rotate symbols in LaTeX? How should we make this diagram?
How to respect Single responsibility principle and use exception handling at the same time?
What type of beer is best for beer battered fish?
Multiple premoves
Can "marriage" be used as a verb?
Pi to the power y, for small y's
HR trying to sabotage my wife's work because we're married
Define a macro in terms of other macro names
from flask_mysqldb import MySQL gives import error : ImportError: No module named flask_mysqldb
installing ecdsaI Get 'Import error : No module named MYSQLdb' in python 2.7. I've tried everything from the other similar threadBackintime won't start (no module named dbus)How to use the ansible.runner module on Ubuntu 14.04.5?PlayOnLinux won't launchImportError: Ubuntu 16.04.3 - Installing basemap module on python 2.7.12Calling .py script from .sh script error “ImportError: No module named apiclient.discovery”
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I use ubuntu 16.04, My python version is 2.7.12 and I tried every installation but i still get flask_mysqldb import error when i try to run the above command.
Traceback (most recent call last):
File "app.py", line 3, in <module>
from flask_mysqldb import MySQL
ImportError: No module named flask_mysqldb
MySQL is install in my system. I am able to work independently as mysql but not able to remove the above import error.
Someone please help.
python mysql
add a comment
|
I use ubuntu 16.04, My python version is 2.7.12 and I tried every installation but i still get flask_mysqldb import error when i try to run the above command.
Traceback (most recent call last):
File "app.py", line 3, in <module>
from flask_mysqldb import MySQL
ImportError: No module named flask_mysqldb
MySQL is install in my system. I am able to work independently as mysql but not able to remove the above import error.
Someone please help.
python mysql
add a comment
|
I use ubuntu 16.04, My python version is 2.7.12 and I tried every installation but i still get flask_mysqldb import error when i try to run the above command.
Traceback (most recent call last):
File "app.py", line 3, in <module>
from flask_mysqldb import MySQL
ImportError: No module named flask_mysqldb
MySQL is install in my system. I am able to work independently as mysql but not able to remove the above import error.
Someone please help.
python mysql
I use ubuntu 16.04, My python version is 2.7.12 and I tried every installation but i still get flask_mysqldb import error when i try to run the above command.
Traceback (most recent call last):
File "app.py", line 3, in <module>
from flask_mysqldb import MySQL
ImportError: No module named flask_mysqldb
MySQL is install in my system. I am able to work independently as mysql but not able to remove the above import error.
Someone please help.
python mysql
python mysql
asked Jul 20 at 17:59
ajourneyajourney
32 bronze badges
32 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
You'll have to install it first. It's not packaged in Ubuntu repositories, so you'll have to use pip2
.
pip2 install flask-mysqldb
or if you want to install it systemwide
sudo pip2 install flask-mysqldb
Further documentation is provided by the project itself
Thanks a lot. It worked but i couldn't upvote, please upvote my question. I tried the same using pip and pip3 but it was still giving me import error. since pip corresponds to python2 version why i was not able to do it initially.
– ajourney
Jul 20 at 18:23
Do i always have to use pip2 install ... for any installation since my python version is 2.7.12? @vidarlo
– ajourney
Jul 20 at 18:41
It's the safest. You're guaranteed thatpip2
will always be for python2.
– vidarlo
Jul 20 at 18:54
OK thanks @vidarlo. i spend a week over this using pip and pip3, none of the work. Thanks a lot to you . : )
– ajourney
Jul 20 at 18:57
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1159738%2ffrom-flask-mysqldb-import-mysql-gives-import-error-importerror-no-module-name%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You'll have to install it first. It's not packaged in Ubuntu repositories, so you'll have to use pip2
.
pip2 install flask-mysqldb
or if you want to install it systemwide
sudo pip2 install flask-mysqldb
Further documentation is provided by the project itself
Thanks a lot. It worked but i couldn't upvote, please upvote my question. I tried the same using pip and pip3 but it was still giving me import error. since pip corresponds to python2 version why i was not able to do it initially.
– ajourney
Jul 20 at 18:23
Do i always have to use pip2 install ... for any installation since my python version is 2.7.12? @vidarlo
– ajourney
Jul 20 at 18:41
It's the safest. You're guaranteed thatpip2
will always be for python2.
– vidarlo
Jul 20 at 18:54
OK thanks @vidarlo. i spend a week over this using pip and pip3, none of the work. Thanks a lot to you . : )
– ajourney
Jul 20 at 18:57
add a comment
|
You'll have to install it first. It's not packaged in Ubuntu repositories, so you'll have to use pip2
.
pip2 install flask-mysqldb
or if you want to install it systemwide
sudo pip2 install flask-mysqldb
Further documentation is provided by the project itself
Thanks a lot. It worked but i couldn't upvote, please upvote my question. I tried the same using pip and pip3 but it was still giving me import error. since pip corresponds to python2 version why i was not able to do it initially.
– ajourney
Jul 20 at 18:23
Do i always have to use pip2 install ... for any installation since my python version is 2.7.12? @vidarlo
– ajourney
Jul 20 at 18:41
It's the safest. You're guaranteed thatpip2
will always be for python2.
– vidarlo
Jul 20 at 18:54
OK thanks @vidarlo. i spend a week over this using pip and pip3, none of the work. Thanks a lot to you . : )
– ajourney
Jul 20 at 18:57
add a comment
|
You'll have to install it first. It's not packaged in Ubuntu repositories, so you'll have to use pip2
.
pip2 install flask-mysqldb
or if you want to install it systemwide
sudo pip2 install flask-mysqldb
Further documentation is provided by the project itself
You'll have to install it first. It's not packaged in Ubuntu repositories, so you'll have to use pip2
.
pip2 install flask-mysqldb
or if you want to install it systemwide
sudo pip2 install flask-mysqldb
Further documentation is provided by the project itself
answered Jul 20 at 18:14
vidarlovidarlo
13.8k6 gold badges33 silver badges60 bronze badges
13.8k6 gold badges33 silver badges60 bronze badges
Thanks a lot. It worked but i couldn't upvote, please upvote my question. I tried the same using pip and pip3 but it was still giving me import error. since pip corresponds to python2 version why i was not able to do it initially.
– ajourney
Jul 20 at 18:23
Do i always have to use pip2 install ... for any installation since my python version is 2.7.12? @vidarlo
– ajourney
Jul 20 at 18:41
It's the safest. You're guaranteed thatpip2
will always be for python2.
– vidarlo
Jul 20 at 18:54
OK thanks @vidarlo. i spend a week over this using pip and pip3, none of the work. Thanks a lot to you . : )
– ajourney
Jul 20 at 18:57
add a comment
|
Thanks a lot. It worked but i couldn't upvote, please upvote my question. I tried the same using pip and pip3 but it was still giving me import error. since pip corresponds to python2 version why i was not able to do it initially.
– ajourney
Jul 20 at 18:23
Do i always have to use pip2 install ... for any installation since my python version is 2.7.12? @vidarlo
– ajourney
Jul 20 at 18:41
It's the safest. You're guaranteed thatpip2
will always be for python2.
– vidarlo
Jul 20 at 18:54
OK thanks @vidarlo. i spend a week over this using pip and pip3, none of the work. Thanks a lot to you . : )
– ajourney
Jul 20 at 18:57
Thanks a lot. It worked but i couldn't upvote, please upvote my question. I tried the same using pip and pip3 but it was still giving me import error. since pip corresponds to python2 version why i was not able to do it initially.
– ajourney
Jul 20 at 18:23
Thanks a lot. It worked but i couldn't upvote, please upvote my question. I tried the same using pip and pip3 but it was still giving me import error. since pip corresponds to python2 version why i was not able to do it initially.
– ajourney
Jul 20 at 18:23
Do i always have to use pip2 install ... for any installation since my python version is 2.7.12? @vidarlo
– ajourney
Jul 20 at 18:41
Do i always have to use pip2 install ... for any installation since my python version is 2.7.12? @vidarlo
– ajourney
Jul 20 at 18:41
It's the safest. You're guaranteed that
pip2
will always be for python2.– vidarlo
Jul 20 at 18:54
It's the safest. You're guaranteed that
pip2
will always be for python2.– vidarlo
Jul 20 at 18:54
OK thanks @vidarlo. i spend a week over this using pip and pip3, none of the work. Thanks a lot to you . : )
– ajourney
Jul 20 at 18:57
OK thanks @vidarlo. i spend a week over this using pip and pip3, none of the work. Thanks a lot to you . : )
– ajourney
Jul 20 at 18:57
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1159738%2ffrom-flask-mysqldb-import-mysql-gives-import-error-importerror-no-module-name%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown