我在运行“pre-commit run --all-files”时收到以下错误,并且在尝试提交时出现以下错误,这是一些 python 错误,使用的 python 版本是“Python 2.7.16”。
\n[INFO] Installing environment for https://github.com/pre-commit/mirrors-mypy.\n[INFO] Once installed this environment will be reused.\n[INFO] This may take a few minutes...\nAn unexpected error has occurred: CalledProcessError: command: ('/Users/user/.cache/pre-commit/repoq_mv31g8/py_env-default/bin/python', '-mpip', 'install', '.', 'tokenize-rt==3.2.0', 'pydantic')\nreturn code: 1\nexpected return code: 0\nstdout:\n Processing /Users/user/.cache/pre-commit/repoq_mv31g8\n Preparing metadata (setup.py): started\n Preparing metadata (setup.py): finished with status 'done'\n Collecting tokenize-rt==3.2.0\n Using cached tokenize_rt-3.2.0-py2.py3-none-any.whl (6.1 kB)\n Collecting pydantic\n Using cached pydantic-1.9.0-cp310-cp310-macosx_11_0_arm64.whl (2.4 MB)\n Collecting mypy==0.782\n Using cached mypy-0.782-py3-none-any.whl (2.4 MB)\n Collecting mypy-extensions<0.5.0,>=0.4.3\n …Run Code Online (Sandbox Code Playgroud)