Pipenv: Is it possible to use "proxy" setting available in pip

Created on 27 Oct 2017  路  15Comments  路  Source: pypa/pipenv

I really like the ease of use of pipenv. But I'm still trying to find my way.

One thing I can't find in pip where I can set the proxy option:
--proxy Specify a proxy in the form [user:passwd@]proxy.server:port

As I often need to work behind a firewall at my workplace (a school).

Describe you environment
  1. Mac Sierra
  2. Python version: Python 3.6.2 | packaged by conda-forge | (default, Jul 23 2017, 23:01:38)
  3. pipenv, version 8.2.5
Expected result

something like:
pipenv --proxy myproxy

Thanks.

Future Discussion Type

Most helpful comment

Any updates on this issue?

All 15 comments

I think i would be a long time for pipenv to support it beause pip doesn't support proxy setting.
However, exporting the http_proxy environment variable can do the same thing(before running pipenv).

$ export http_proxy=your_server:port
$ export https_proxy=your_server:port

@ivechan pip does support installing from proxy if you pass it --proxy. @nateprewitt @techalchemy Thoughts about adding a proxy section to the pipfile spec?

@erinxocon I feel like @kennethreitz wanted to keep as few things as possible in the Pipfile and kept pushing people to set up their pip.conf or pip.ini for things like this. However, that would mean we will have to figure out how to respect those settings for pip-tools as well, and I am not sure how that would work.

@techalchemy That's what I was thinking. We could use config files in the root of the project directory, but pip-tools doesn't currently respect that in our code.

@erinxocon @techalchemy imo we need to respect pip.conf and the fact we aren't is a problem because we're rebuilding a lot of functionality pip should already handle (better) for us. We don't need the file to be in the directory, it's noted by a env variable or the default path established by pip. We just need to add a patch for pip-tools to respect it if it's not.

Also we definitely do not want a proxy entry in the Pipfile, that's user specific and isn't necessarily required. Anything that's system/instance specific should be left on the origin machine.

not being supported, currently

@kennethreitz would you accept a pull request to support this? imho npm has the ideal method:

npm config set https-proxy http://someproxy:8443

That way you can set it and forget it. Unlike pip where you need to use an alias to always add the proxy.

any update on this?

I would also be interested to hear more about this...

Any updates on this issue?

I might as well bumb this again. Any updates?

Right now I can put my proxy in ~/pip/pip.conf or ~/pip/pip.ini (linux or windows). But it would be much better if I just could add my proxy in the pipfile.

Any updates? 馃

Is there any update? What is the current workaround?

Any updates?

I will say something new: any updates ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

randName picture randName  路  3Comments

bgjelstrup picture bgjelstrup  路  3Comments

leileigong picture leileigong  路  3Comments

marc-fez picture marc-fez  路  3Comments

FooBarQuaxx picture FooBarQuaxx  路  3Comments