First time here? Checkout the FAQ!
x
0 votes
408 views
asked in General by (180 points)  
Hi Everyone,

How to install Matplotlib in Python IDLE. 3.7.4

I'm a student in Data Science and I want to do The Birthday Paradox and it requires me to import matplotlib.pyplot

I'm using MAC and in the terminal, I tried to write:

(base) MacBook-Pro:~ nasir$ sudo apt install python3-matplotlib

Password: **************

I then received the below error:

Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin/apt" (-1)

(base) MacBook-Pro:~ nasir$
  

2 Answers

+1 vote
answered by (180 points)  
I had Anaconda installed at my Mac and it was making conflict, I just removed Anaconda and everything working fine now, Thank you.
0 votes
answered by (116k points)  
The easiest way is using Anaconda which comes with it pre-installed. You can also use Google Colab.
...