
Answer-first summary for fast verification
Answer: The library will not be uninstalled as the libraries installed on clusters cannot be uninstalled through the `%pip` command.
A library installed on the cluster cannot be uninstalled through notebooks. To uninstall a library installed on the cluster, you can go to the `Compute` menu and select the appropriate cluster. Additionally, if you need to uninstall a library installed on your notebook, you can use: `%pip uninstall -y`. To print the list of libraries already installed, you can run the following set of commands: `import sys print(sys.path)`.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
After a Databricks admin installs Python libraries during cluster creation, a team member attempts to remove the pandas library from their notebook using the command %pip uninstall pandas. What will be the outcome?
A
The library will be uninstalled from the notebook but will remain available to all other notebooks.
B
The library will not be uninstalled as the libraries installed on clusters cannot be uninstalled through the %pip command.
C
The library will be uninstalled from the cluster and will not be available to any other notebook attached to the cluster.
D
The library will not be uninstalled as -y should be used to uninstall the libraries installed on a cluster.
E
The library will not be uninstalled but it will not be available for further use in the notebook.