ThinPHP reports this error because the captcha extension is not installed. The TP5 framework needs to install the captcha extension to generate the verification code. There are two solutions:
One is that composer installs the TP captcha extension
One is to directly download the teacher's source code and overwrite the vendor directory (simple and efficient)