When I ran the python scripts directly, it is able to detect modules of python. But when I ran with jenkins, even the default OS module is not being detected.

Any suggestions on how to fix that?

  • Have you installed jenkins by this command? pip install jenkins Maybe you have to try installing using this command instead, pip install python-jenkins – Pooja S Jun 3 at 11:12
  • same issue, even after following these steps – uday Jun 3 at 11:30
  • can u send the error message that you're getting – Pooja S Jun 3 at 12:04
  • python command not found – uday Jun 3 at 13:00
  • command not found sounds more like you are trying to start python in the wrong path. Change your path (or check your path variable in *rc) to where python is installed and try again. – bjoster Jun 9 at 15:28

Browse other questions tagged or ask your own question.