Complete the code to install pytest using pip.
pip [1] pytestTo install pytest, you use the command pip install pytest. This tells pip to install the pytest package.
Complete the command to check the pytest version after installation.
pytest [1]Use pytest --version to check the installed pytest version.
Fix the error in the command to install pytest for the current user.
pip [1] --user pytestThe correct command to install pytest for the current user is pip install --user pytest. The install keyword is needed.
Fill both blanks to write a command that upgrades pytest to the latest version.
pip [1] --[2] pytest
To upgrade pytest to the latest version, use pip install --upgrade pytest. The --upgrade flag updates the package if a newer version is available.
Fill both blanks to write a command that installs pytest and shows the installed version after.
pip [1] pytest && pytest [2]
The command pip install pytest && pytest --version installs pytest and then shows its version. The '&&' runs the second command only if the first succeeds.