windows上安装git-review执行git review

平台:win10

            python 3.6

问题描述:在windows上执行git-review但是提示没有该命令

tips:要先安装python和pip

Windows[edit]

Python is needed for git-review to function and pip is used for its installation:

  • Install python or upgrade to the most current version of Python 2 or Python 3.
  • Important: Do not install Python in any directory with a space in its path as there is a pip bug (see , use the default, e.g. C:\Python34\
  • During the Python installation, manually select Add python.exe to Path
  • Otherwise, add your python scripts directory manually to the system path (Settings, Control panel, System, Advanced system settings, Environment variables, User variables, Path; e.g. C:\Python34\;C:\Python34\Scripts\;). Different directories in path are delimited by a semicolon ";" only - do not add any whitespace to path list.)
  • Python 3.4 has pip already installed. Only if you have an older version, install pip by following the instructions here.
  • Run Git Bash as Administrator (right click on icon for this option) and install git-review with the following command:
$ pip install git-review
If you experience problems such as these:
 Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03B55750>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/git-review/
try running:
$ pip install git-review --proxy=www-proxy-lon.uk.oracle.com:80
the exact proxy to use can be extracted from  http://wpad/wpad.dat file.
  • To use git review, you have to be in a git clone directory that already contains a (possibly hidden) .gitreview configuration file (see Gerrit/Advanced usage#Setting up a repository for git-remote), otherwise you will get the error message UnboundLocalError: local variable 'no_git_dir' referenced before assignment
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值