English 中文(简体)
Pytest - Environment Setup
  • 时间:2024-12-22

Pytest - Environment Setup


Previous Page Next Page  

In this chapter, we will learn how to install pytest.

To start the installation, execute the following command −

pip install pytest == 2.9.1

We can install any version of pytest. Here, 2.9.1 is the version we are instalpng.

To install the latest version of pytest, execute the following command −

pip install pytest

Confirm the installation using the following command to display the help section of pytest.

pytest -h
Advertisements