小编Man*_*asu的帖子

pip安装失败,需要407 Proxy Authentication

我正在尝试使用下面的pip install命令,但它失败了代理身份验证需要问题.我已经在RHEL7.x服务器中配置了代理.

Command Used: `pip install --proxy https://'username:pwd'@proxy:host  --upgrade pip`
Run Code Online (Sandbox Code Playgroud)

日志:

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after …
Run Code Online (Sandbox Code Playgroud)

authentication proxy pip rhel tunnel

9
推荐指数
2
解决办法
3万
查看次数

git diff fatal:不明确的参数未知修订版或路径不在工作树中

我在生产代码中运行git fetch origin,然后尝试使用origin/master与我当前的分支进行 Git diff 。我在运行命令时遇到此错误:

致命:不明确的参数未知修订版或路径不在工作树中

请在下面找到所使用的命令和实际错误。

命令尝试:

git fetch origin
git diff --name only release/test origin/master
Run Code Online (Sandbox Code Playgroud)

预期输出:

git diff should work
Run Code Online (Sandbox Code Playgroud)

实际输出:

[localhost] local: git diff --name-only release/test origin/master |   ambiguous argument 'release/test': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Run Code Online (Sandbox Code Playgroud)

我们如何使用 Git diff 命令纠正该问题?

git git-diff fatal-error

9
推荐指数
1
解决办法
3万
查看次数

标签 统计

authentication ×1

fatal-error ×1

git ×1

git-diff ×1

pip ×1

proxy ×1

rhel ×1

tunnel ×1