问题描述
例如,当我试图使用命令提交时,我在提交时遇到了问题:
$ git commit -m "add readme"
pre-commit not found. Install pre-commit with the command pip3 install --user pre-commit or follow the steps on official documentation: https://pre-commit.com /#install按照命令所安装的预提交安装文档中描述的步骤:
$ pip install pre-commit但是,当我触发命令时,会发生以下错误:
$ pre-commit --version
bash: pre-commit: command not found我的尝试失败了
我尝试过一些其他的解决方案,但它们没有奏效:
出口狂潮h
我已经尝试过使用命令:this solution导出我的~./bashrc:source ~/.profile,但是发生了以下错误:
bash:/Users/pvieira/.profile: No such file or directory使用自制软件安装
这样做的相同错误发生时,安装由pip出现在这里。
发布于 2022-06-26 15:32:57
我只需重新启动终端就能解决这个问题。
发布于 2022-09-06 03:08:59
我通过重新启动ubuntu系统解决了这个问题。
https://stackoverflow.com/questions/72744458
复制相似问题