0

So I used pip to install matplotlib module through command line in windows, but when I then try to import the module in python, it says no module is found.

How do I fix this? When I've tried to install it again, it says the module exists and can be found through my files. However python doesn't seem to be able to link to it to import it?

1
  • Please expand your question, what result are you expecting? Have you debugged the code? Commented Jun 7, 2017 at 18:31

1 Answer 1

1

If you're on Python 2.7, you will want to read the following document at it details how to install MySQLdb1 on the various platforms:

See the INSTALL file specifically.

Note that this is kind of a legacy module. If you want something that works in Python 3, you might want to check out moist.

There is also PyMySQL, which is compatible with both Python 2.6+ and 3.3+ and it can be installed with pip:

pip install PyMySQL
Sign up to request clarification or add additional context in comments.

1 Comment

pip is a program used for installing most Python packages and comes with Python 3 now. You can read about it here: pypi.python.org/pypi/pip or here pip.pypa.io/en/stable

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.