你好。
需要在仅通过代理具有 Internet 连接的服务器上下载适用于 python(3.5)/OS Windows 的软件包。我尝试使用此选项,但没有用,因为。pip 不能正确识别密码,它有一个特殊的功能是 # 符号。
“C:\Program Files\Python35\scripts\pip.exe” –-proxy http://user_proxy:pwd#123@proxy.new.ru:1111 install requests
在密码中转义 # 的正确方法是什么?
p.s. 我也试过这个
“C:\Program Files\Python35\scripts\pip.exe” --proxy "http://user_proxy:pwd#123@proxy.new.ru:1111" 安装请求 “C:\Program Files\Python35\scripts\pip.exe” --proxy http://"user_proxy:pwd#123"@proxy.new.ru:1111 安装请求 “C:\Program Files\Python35\scripts\pip.exe” --proxy http://user_proxy:"pwd#123"@proxy.new.ru:1111 安装请求
结果是否定的:-(
而不是 # 有必要写 %23