jenkins building can not find python-dependent

Recently engaged jenkins automated build, encountered such a problem, I installed python-related dependency, but jenkins run under root in X users, so find the relevant import

 

1. Perform pip freeze, will depend on print-related

2. Perform pip freeze> deploy.txt store

3. su root into the root privileges

4. pip install -r deploy.txt install

 

This would solve the problem jenkins build failed!

Guess you like

Origin www.cnblogs.com/xupeidong/p/11350671.html