# /bin/bash: pytest: command not found

**URL:** <https://discuss.circleci.com/t/bin-bash-pytest-command-not-found/43733>\
**Category:** Build Environment\
**Tags:** circle-yml\
**Created:** [April 18, 2022, 11:59am UTC](https://discuss.circleci.com/t/bin-bash-pytest-command-not-found/43733 "2022-04-18T11:59:00Z")\
**Posts on this page:** 2\
**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 18, 2022, 11:59am UTC](https://discuss.circleci.com/t/bin-bash-pytest-command-not-found/43733/1 "2022-04-18T11:59:00Z")

</div>

version: 2.1

orbs:

python: circleci/python@1.5.0

workflows:

```
build_and_test:

  jobs:

    - build_and_test:

        filters:

         branches:

           only: circleci

```

jobs:

build\_and\_test:

```
docker:

  - image: cimg/python:3.10.1

steps:

  - checkout

  - python/install-packages:

      pkg-manager: poetry

     

  - run:

      command: pytest

      name: Test

```

when i run this in circle ci i got

 ![Screenshot 2022-04-18 172836](https://global.discourse-cdn.com/circleci/original/3X/e/f/ef208862260b6b2a28fc392f25b4ca3f536e5688.jpeg)

---

<div class="post-metadata">

**Author:** ![rit1010](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/rit1010/32/34738_2.png) [@rit1010](https://discuss.circleci.com/u/rit1010)\
**Post date:** [April 20, 2022, 10:20am UTC](https://discuss.circleci.com/t/bin-bash-pytest-command-not-found/43733/2 "2022-04-20T10:20:12Z")

</div>

From the examples given for the circleci/python ORB and the package list provided for the  
cimg/python:3.10.1 image I would say that pytest is not installed by default, but instead loaded by your selected package manager.

The ORB documentation can be found here

```
 https://circleci.com/developer/orbs/orb/circleci/python

```

One of the examples shows pytest being used with poetry - where poetry is passed pytest as a parameter for the executed command line. Only the pip example has pytest being used directly on the command line.
