jenkins 执行 python 脚本报:ImportError: No module named configparser
日志:
Started by user zllcjx
Building in workspace /Users/Shared/Jenkins/Home/workspace/接口测试
[接口测试] $ /bin/sh -xe /Users/Shared/Jenkins/tmp/hudson8711863975502678804.sh
- python /Users/zll/interface_test/runtest.py
Traceback (most recent call last):
File "/Users/zll/interface_test/runtest.py", line 5, in
import interface.weather
File "/Users/zll/interface_test/interface/weather.py", line 7, in
from globalpkg.httpprotocol import MyHttp
File "/Users/zll/interface_test/globalpkg/httpprotocol.py", line 10, in
from globalpkg.logs import logger
File "/Users/zll/interface_test/globalpkg/logs.py", line 7, in
import configparser
ImportError: No module named configparser
Build step 'Execute shell' marked build as failure
Finished: FAILURE
我在本地执行 python 脚本是 ok 的
麻烦各位看看是什么问题啊?