-2

when I import matplotlib in my jupyter notebook it dose not work and this is its error:

enter image description here

can anyone help me what is wrong in my code?

2
  • 1
    You don't have matplotlib installed in your python environment Commented May 15, 2021 at 7:18
  • @Scratch'N'Purr thanx can you explain more what should I do now? Commented May 15, 2021 at 7:23

2 Answers 2

1

enter image description hereTry these things on your Anaconda Prompt terminal:

  1. pip -V <- The version of pip will be displayed, if it is successfully installed on your system. Then we will try to upgrade it.
  2. pip install --upgrade pip <- do this to upgrade your pip, if it is already upgraded then it will show it.
  3. pip install matplotlib <- then write this command if still doesn't work let me know in the comments
Sign up to request clarification or add additional context in comments.

4 Comments

in part 2 I have this error could not find the version that satisfies the requirements matplotlib
pip install --upgrade pip <-this is for upgrading the PIP to the latest version, it is not related to maplotib. Can you show the image of point 1 and point 2 after writing the command and entering, by edit your answer above.
This issue is related to some proxy, your firewall is not allowing pip to connect to the internet, so you need to allow pip from the windows firewall and it will work. I saw this somewhere, you need to use below proxy: HTTPS_PROXY=username:[email protected]:8080" https_proxy=username:[email protected]:8080" You might need to find where you have to set these proxy variables.
yes that is right it was related to proxy .thanx
0

have you even installed the lib? you can install it with python -m pip install -U matplotlib

1 Comment

I try this but I have this problem now wrong version number

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.