我用 python 写了 gitlab hook。并添加到 gitlab 服务器中的 post-receive 钩子。当我从笔记本电脑推送到远程源服务器时,出现以下错误。但是当我在 gitlab 服务器中手动运行脚本时它可以工作。我该如何解决问题?
Counting objects: 3, done.
Writing objects: 100% (3/3), 240 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote: File "push.py", line 4, in <module>
remote: import gitlab
remote: ImportError: No module named gitlab
Run Code Online (Sandbox Code Playgroud)