Processing math: 100%
First time here? Checkout the FAQ!
x
0 votes
435 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:~ nasirsudoaptinstallpython3matplotlibPassword:Ithenreceivedthebelowerror:Unabletolocateanexecutableat"/Library/Java/JavaVirtualMachines/jdk11.0.1.jdk/Contents/Home/bin/apt"(1)(base)MacBookPro: 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.
...