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;









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.










share|improve this question
































    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.










    share|improve this question




























      0












      0








      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.










      share|improve this question















      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






      share|improve this question














      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 20 at 17:59









      ajourneyajourney

      32 bronze badges




      32 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          0


















          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






          share|improve this answer


























          • 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 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













          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
          );



          );














          draft saved

          draft discarded
















          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









          0


















          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






          share|improve this answer


























          • 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 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
















          0


















          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






          share|improve this answer


























          • 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 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














          0














          0










          0









          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






          share|improve this answer














          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







          share|improve this answer













          share|improve this answer




          share|improve this answer










          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 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


















          • 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 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

















          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



















          draft saved

          draft discarded















































          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.




          draft saved


          draft discarded














          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





















































          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









          Popular posts from this blog

          Tamil (spriik) Luke uk diar | Nawigatjuun

          Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

          Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?