# When i run the this its shows No module named pytest

**URL:** <https://discuss.circleci.com/t/when-i-run-the-this-its-shows-no-module-named-pytest/43631>\
**Category:** Running Tests\
**Tags:** circle-yml\
**Created:** [April 10, 2022, 8:46pm UTC](https://discuss.circleci.com/t/when-i-run-the-this-its-shows-no-module-named-pytest/43631 "2022-04-10T20:46:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arunasalam](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Arunasalam](https://discuss.circleci.com/u/Arunasalam)\
**Post date:** [April 10, 2022, 8:46pm UTC](https://discuss.circleci.com/t/when-i-run-the-this-its-shows-no-module-named-pytest/43631/1 "2022-04-10T20:46:15Z")

</div>

version: 2.1

orbs:

python: circleci/python@1.5.0

jobs:

build-and-test: # This is the name of the job, feel free to change it to better match what you’re trying to do!

```
docker:

  - image: cimg/python:3.8.0

steps:

  - checkout

  - python/install-packages:

       pkg-manager: poetry

  - run:

      name: Run tests

      command: python -m pytest

```

workflows:

sample: # This is the name of the workflow, feel free to change it to better match your workflow.  
jobs:

```
  - build-and-test
```
