I am running a python script that uses the requests and de pymysql module, I had to install it manually from a tar.gz file in the server (because the server doesn't have access to the internet, and those packages are not available).
I installed it, and it works, but when I try to execute that script from Jenkins:
Traceback (most recent call last):
File "/var/tmp/xxx.py", line 8, in <module>
import pymysql
ImportError: No module named pymysql
Build step 'Execute shell' marked build as failure