[英]git review error ValueError: No closing quotation
i'm reinstalled pip in python and module git-review.我在 python 和模块 git-review 中重新安装了 pip。 i was installs python version 2.7 and 3.9我正在安装 python 版本 2.7 和 3.9
Command "git review" is worked, i don't know what's happend but now error命令“git review”有效,我不知道发生了什么但现在错误
Traceback (most recent call last):
File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "c:\python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Users\esinitsyn\AppData\Roaming\Python\Scripts\git-review.exe\__main__.py", line 9, in <module>
File "C:\Users\esinitsyn\AppData\Roaming\Python\Python27\site-packages\git_review\cmd.py", line 1714, in main
_main()
File "C:\Users\esinitsyn\AppData\Roaming\Python\Python27\site-packages\git_review\cmd.py", line 1690, in _main
(status, output) = run_command_status(cmd)
File "C:\Users\esinitsyn\AppData\Roaming\Python\Python27\site-packages\git_review\cmd.py", line 129, in run_command_status
argv = shlex.split(str(argv[0]))
File "c:\python27\lib\shlex.py", line 279, in split
return list(lex)
File "c:\python27\lib\shlex.py", line 269, in next
token = self.get_token()
File "c:\python27\lib\shlex.py", line 96, in get_token
raw = self.read_token()
File "c:\python27\lib\shlex.py", line 172, in read_token
raise ValueError, "No closing quotation"
ValueError: No closing quotation
Python --version
in my case its shows Python 3.9.1 Python --version
在我的例子中它显示 Python 3.9.1
pip --version
in my case I have pip 21.0.1 from d:\py39\lib\site-package\pip (python 3.9) pip --version
在我的情况下,我有来自 d:\py39\lib\site-package\pip 的 pip 21.0.1 (python 3.9)
try upgrading the pip if throw error just by : pip install --upgrade pip
如果抛出错误,请尝试升级 pip : pip install --upgrade pip
pip install git-review
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.