-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxy connection error with pipenv install but pip install works fine #4314
Comments
any update on this? |
Do you have any proxy settings in |
I do, I also set the environment variables. |
the proxy is set with
it seems that pipenv is doing http requests on it's own now using requests:
|
my workaround is to add the CA to the cacert.pem from certifi in site-packages (/home/xxxx/.local/share/virtualenvs/pipenv-2020.6.2-BlFqa2vD/lib/python3.8/site-packages/pipenv/vendor/certifi/cacert.pem in my case) |
Thank you all for the answer. I am switching do the built in venv, which, by the way, is the preferred method for python 3.3+ Gio |
I was unable to get any relief after adding certs this way for my internal mirror. I would really like to be able to use |
I can confirm this problem |
I fixed it by using pip install requests[security] inside the environment where pipenv is installed (most probably global) and exporting the environment variables "HTTP_PROXY" and "HTTPS_PROXY" (usually only one is relevant). $ export HTTP_PROXY="http://10.10.1.10:3128"
$ export HTTPS_PROXY="http://10.10.1.10:1080" See for example: https://requests.readthedocs.io/en/master/user/advanced/#proxies |
I was facing the same problem, I fixed by adding a pip.ini file. https://stackoverflow.com/questions/59817886/using-pipenv-behind-a-proxy |
Also seeing this. |
I have set up the environment variables in my .zhsrc/.bashrc and it works. Did not needed to add anything extra and it works.
Or you might need to add username and password also to make it work.
I am using the first approach and it works for me. You can read more details on the advance usecase document from the request library as @image357 mentioned. |
Please try pipenv=2022.8.17 |
This effort which should be in the next release should allow users to pass the |
Version
pipenv version 2020.6.2
pip 20.1.1
python 3.7.7
Issue description
Running simply pipenv install numpy fails with the following message again and again
I am behind a corporate proxy but running
pip install
works fine.I have a
pip.ini
file where I specify the trusted hosts and the extra index urls and it seems thatpipenv
is reading this because, before the error I can read:Any way to make it work?
Many thanks
The text was updated successfully, but these errors were encountered: