839 views
0 0 votes
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$
0% Accept Rate Accepted 0 answers out of 1 questions

2 Answers

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

Related questions

1 1 vote
1 1 answer
1.0k
1.0k views
Ghassem asked Feb 27, 2020
1,017 views
Is there any way to download a file directly into HDFS?
0 0 votes
0 0 answers
1.8k
1.8k views
Harshini asked Feb 7, 2020
1,828 views
When I am using the select statement to display my data in hive. It displays my data in scattered format. I want to add a delimiter so that when data is been displayed it...
1 1 vote
1 1 answer
2.8k
2.8k views
tofighi asked Feb 4, 2020
2,812 views
Is it possible to take a look at list of all commands written for Apache Hive?
1 1 vote
2 answers 2 answers
2.5k
2.5k views
Ghassem asked Jan 30, 2020
2,491 views
Hive is not enabled by default on GCP on Apache Zeppelin on Dataproc on GCP. How can we activate it?
0 0 votes
1 1 answer
1.8k
1.8k views