Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/349.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何卸载预提交_Python_Uninstallation_Pre Commit.com - Fatal编程技术网

Python 如何卸载预提交

Python 如何卸载预提交,python,uninstallation,pre-commit.com,Python,Uninstallation,Pre Commit.com,按照预提交上的“非管理安装”说明,我运行了以下命令: curl http://pre-commit.com/install-local.py | python 这些说明提供了以下说明:“(要升级:再次运行,要卸载:将卸载传递给python)。” 现在,我想卸载预提交。我试图理解如何将卸载传递给Python。我不确定通过卸载需要什么 我试过: curl http://pre-commit.com/install-local.py | python --uninstall curl http://

按照预提交上的“非管理安装”说明,我运行了以下命令:

curl http://pre-commit.com/install-local.py | python
这些说明提供了以下说明:“(要升级:再次运行,要卸载:将卸载传递给python)。”

现在,我想卸载预提交。我试图理解如何将卸载传递给Python。我不确定通过
卸载
需要什么

我试过:

curl http://pre-commit.com/install-local.py | python --uninstall
curl http://pre-commit.com/install-local.py | --uninstall python
curl http://pre-commit.com/install-local.py | uninstall | python
…还有其他一些可能更无意义的变体。所有这些都导致:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Unknown option: -n
usage: /usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
100  2590  100  2590    0     0  14175      0 --:--:-- --:--:-- --:--:-- 14230
(23) Failed writing body
这个怎么样:

curl http://pre-commit.com/install-local.py | python - uninstall

因此产生了以下注释:
Cleaned~/.pre-commit-venv~/bin/pre-commit
。但pre-commit似乎仍在安装中。你认为有什么原因可以阻止它用上面的命令完全卸载吗?不确定,我在我的机器上试过,它似乎要删除它@kuanb也许您还运行了
预提交安装
,您希望
预提交卸载
撤消它?(或者
rm.git/hooks/pre-commit
,如果您已经按照上述方法清除了它)