Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)
Can anyone tell me how to install library in Python?

1 Answer

0 votes
by (108k points)

For installing any library or package in Python, first, you have to open the Anaconda prompt and then write the below code for installing the package:

pip install package-name

Let’s say, you want to install the Matplotlib package. In this case, you will be writing the above code in the following way:

pip install matplotlib

Then, you should hit Enter, and your package will thus get installed in your Python environment.

If you are looking for an online course to learn Python, I recommend this Python Training program by Intellipaat.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Mar 1, 2021 in Python by Rekha (2.2k points)

Browse Categories

...