mysql module not working in python3Install and use Hovercraft on Ubuntu 14.10How to Access MySQL with Python Version 3.4trying to install mysql-connector for python 3vboxapi for python3MySQL connector/python ImportError: No module named 'mysql'How to set vs code for python3mysql.connector module for python

Swap M-x and M-q

Will a nuclear country use nuclear weapons if attacked by conventional means by another nuclear country?

Morphing between two functions

How did my photos get transferred to my new iPhone even though they weren't in iCloud?

Is it a good idea to contact a candidate?

If the wavefunction of a quantum system is not an eigenfunction of some operator, how do we measure that property?

Why did dict.get(key) work but not dict[key]?

Pi to the power y, for small y's

Is it acceptable to mark off or comment on someone's presentation based on their non-standard English accent?

Can you make tandoori rotis with chickpea / green pea flour?

Can dual US-Canadian citizens travel to the US with an expired US passport but valid Canadian passport?

Counter intuitive Bayesian theorem

What is a good way to challenge an Agonizing Blast Warlock?

Did medieval stores have names?

Short story trilogy about a human whose parents were missionaries to a planet of cat people

Add legend with ArcPy over my interpolated map

Multiple processes redirecting to the same file with >

How is the entropy at the time of the Big Bang calculated?

Why don't miners charge more for high value transactions?

Possible executive assistant job scam

What were the prevailing real-life cultural connotations of "clones" in 1975 (Star Wars' 3rd draft)?

Do airplanes need brakes in the air?

Why do airports in the UK have so few runways?

Is it possible to write a short story in 500 words?



mysql module not working in python3


Install and use Hovercraft on Ubuntu 14.10How to Access MySQL with Python Version 3.4trying to install mysql-connector for python 3vboxapi for python3MySQL connector/python ImportError: No module named 'mysql'How to set vs code for python3mysql.connector module for python






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0

















Am using ubuntu 16.04.
Installed mysql connector with pip3.
python3 show mysql module installed.
import mysql is only accepted in the python interpreter and not in scripts,
it only works with python.(only) not with python3 scripts. why is that?










share|improve this question
































    0

















    Am using ubuntu 16.04.
    Installed mysql connector with pip3.
    python3 show mysql module installed.
    import mysql is only accepted in the python interpreter and not in scripts,
    it only works with python.(only) not with python3 scripts. why is that?










    share|improve this question




























      0












      0








      0








      Am using ubuntu 16.04.
      Installed mysql connector with pip3.
      python3 show mysql module installed.
      import mysql is only accepted in the python interpreter and not in scripts,
      it only works with python.(only) not with python3 scripts. why is that?










      share|improve this question















      Am using ubuntu 16.04.
      Installed mysql connector with pip3.
      python3 show mysql module installed.
      import mysql is only accepted in the python interpreter and not in scripts,
      it only works with python.(only) not with python3 scripts. why is that?







      mysql python3






      share|improve this question














      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 16 at 15:42









      user259561user259561

      61 silver badge3 bronze badges




      61 silver badge3 bronze badges























          0






          active

          oldest

          votes













          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%2f1158701%2fmysql-module-not-working-in-python3%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown


























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f1158701%2fmysql-module-not-working-in-python3%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”?