请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

老师 模块找不到

Started by user admin
Running as SYSTEM
Building in workspace C:\Users\Administrator\PycharmProjects\homework2
[homework2] $ cmd /c call C:\Windows\TEMP\jenkins5095148411806752238.bat

C:\Users\Administrator\PycharmProjects\homework2>python case\first_case.py
Traceback (most recent call last):
File “case\first_case.py”, line 6, in
from business.register_business import RegisterBusiness
File “C:\Users\Administrator\PycharmProjects\homework2\business\register_business.py”, line 2, in
from handle.register_handle import RegisterHandle
File “C:\Users\Administrator\PycharmProjects\homework2\handle\register_handle.py”, line 3, in
from util.get_code import GetCode
File “C:\Users\Administrator\PycharmProjects\homework2\util\get_code.py”, line 3, in
from PIL import Image#操作图片
ModuleNotFoundError: No module named ‘PIL’

C:\Users\Administrator\PycharmProjects\homework2>exit 1
Build step ‘Execute Windows batch command’ marked build as failure
Finished: FAILURE

图片描述

正在回答 回答被采纳积分+3

1回答

Mushishi 2021-06-02 13:00:42

ModuleNotFoundError: No module named ‘PIL’

 这个你安装了么?区分好虚拟环境和实际运行环境。

0 回复 有任何疑惑可以回复我~
  • 提问者 晓芳1 #1
    安装了
    回复 有任何疑惑可以回复我~ 2021-06-02 17:58:02
  • 提问者 晓芳1 #2
    用pycharm运行时没有问题的 就是用jenkins运行不行
    回复 有任何疑惑可以回复我~ 2021-06-03 05:48:46
  • Mushishi 回复 提问者 晓芳1 #3
    你pycharm是不是再虚拟环境中运行得。你cmd运行看是否ok
    回复 有任何疑惑可以回复我~ 2021-06-03 11:21:50
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信