Friday , September 20 2024

What is true about the pip install command? (Select two answers)

Questions BankCategory: Python Essentials 2What is true about the pip install command? (Select two answers)
What is true about the pip install command? (Select two answers)

  • It installs a package per user only when the –user option is specified.
  • It installs a package system-wide only when the –system option is specified.
  • It always installs the newest package version and it cannot be changed.
  • It allows the user to install a specific version of the package.

Explanation: Remember that to install a specific version of a Python package you can use pip install package_name==package_version. The –user option changes the scope of the installation to the user’s home directory rather than the default system-wide installation.

More Questions: Python Essentials 2 – Module 1 Test