code-maven.com icon indicating copy to clipboard operation
code-maven.com copied to clipboard

notify ModuleNotFoundError while running python script on node

Open alpgof opened this issue 2 years ago • 1 comments

https://code-maven.com/jenkins-pipeline-running-external-programs

Description: run python script on node, it's ok . but run it with jenkins-pipeline , it will notify ModuleNotFoundError.

alpgof avatar Dec 16 '21 04:12 alpgof

You probably either execute a different version of python or you don't have the virtual environment turned on when you run it from jenkins.

szabgab avatar Dec 16 '21 06:12 szabgab