我正在尝试使用 PIP 签出一个颠覆存储库,因为我在一个代理下,我正在使用 --proxy 参数调用 PIP:
pip install svn+http://django-compress.googlecode.com/svn/trunk/ --proxy=myproxy:8080
虽然 PIP 本身在代理下工作正常,但它看到它没有将代理参数传递给 SVN 客户端:
Downloading/unpacking svn+http://django-compress.googlecode.com/svn/trunk/
Checking out http://django-compress.googlecode.com/svn/trunk/ to c:\users\canassa\appdata\local\temp\pip-x_w9ct-build
svn: OPTIONS of 'http://django-compress.googlecode.com/svn/trunk': could not connect to server (http://django-compress.googlecode.com)
Complete output from command "C:\Program Files\SlikSvn\bin\svn.exe" checkout -q http://django-compress.googlecode.com/svn/trunk/ c:\users\canassa\appdata\local\temp\pip-x_w9ct-build:
----------------------------------------
Command "C:\Program Files\SlikSvn\bin\svn.exe" checkout -q http://django-compress.googlecode.com/svn/trunk/ c:\users\canassa\appdata\local\temp\pip-x_w9ct-build failed with error code 1
Storing complete log in C:\Users\canassa\AppData\Roaming\pip\pip.log
更糟糕的是,我在 Windows 环境下使用 SilkSVN 客户端。我还必须每天关闭几次代理,因为它是笔记本电脑,我必须将它与不使用代理的无线连接。
我的问题是是否有办法在 PIP 和 Windows 下处理 SlikSvn 代理。最好在我需要时轻松关闭它。