Hello.

There was a need to roll packages for python (3.5) / Windows OS on a server that has an Internet connection through a proxy only. I tried to use this option, but it did not work, because pip does not recognize the password correctly, it has a # character in it.

“C:\Program Files\Python35\scripts\pip.exe” –-proxy http://user_proxy:pwd#123@proxy.new.ru:1111 install requests 

How to properly screen # in the password?

ps also tried such options

     “C: \ Program Files \ Python35 \ scripts \ pip.exe” –-proxy "http: // user_proxy: pwd#123@proxy.new.ru: 1111" install requests
     “C: \ Program Files \ Python35 \ scripts \ pip.exe” –-proxy http: // "user_proxy: pwd # 123" @ proxy.new.ru: 1111 install requests
     “C: \ Program Files \ Python35 \ scripts \ pip.exe” –-proxy http: // user_proxy: "pwd # 123" @ proxy.new.ru: 1111 install requests

negative results :-(

    1 answer 1

    instead of # it was necessary to write% 23

    • In general, you can try urllib.parse.quote(password) . - jfs