在代理下使用PIP和SlikSVN
我正在尝试通过PIP来检出一个Subversion(SVN)仓库,因为我在使用代理,所以我在调用PIP的时候加上了--proxy这个参数:
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下处理SilkSVN的代理设置?最好能方便地在需要的时候关闭代理。
1 个回答
2