Skip to main contentSkip to solution

How can you install matplotlib?

Solution

✅ Correct Option: 3

The command is pip install matplotlib. Here pip is Python's package manager, install is the action, and matplotlib is the package name. It downloads the library from PyPI and installs it. It is typed in the command prompt or terminal, not inside the Python shell.


Option 1: pip matplotlib has no action word, so pip does not know what to do with the package name.

Option 2: install matplotlib leaves out pip, so the system has no program to run the install.

Option 4: desc is not a pip command. It looks like the SQL DESC statement, which describes a table.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question