Python 3.7: Applying the proxy to all parts of pip installation, failing to maintain the proxy variable
I have the below problem, I am using command
pip install pyinstaller --proxy=http://webdefence.global.blackspider.com:80 --trusted-host=pypi.python.org
The problem I have is the proxy variable is not maintained through the installation process. It no longers has the proxy address when trying to install setuptools. I have tried using HTTP_PROXY
and HTTPS_PROXY
in my environment variables with no luck. Are there any other ways to set a proxy which will maintain through the pip install?
I have used -vvv to produce more error detail - pasted in at gist.github.com/blaggrob/19e7afcae2b4f1d36139fbf0a88a6651
Collecting pyinstaller
Using cached https://files.pythonhosted.org/packages/03/32/0e0de593f129bf1d1e77eed562496d154ef4460fd5cecfd78612ef39a0cc/PyInstaller-3.4.tar.gz
Installing build dependencies ... error
Complete output from command c:usersblaggrappdatalocalprogramspythonpython37-32scriptspython.exe -m pip install --ignore-installed --no-user --prefix C:UsersblaggrAppDataLocalTemppip-build-env-vd3w15r1 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --trusted-host pypi.python.org -- setuptools wheel:
Collecting setuptools
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Could not find a version that satisfies the requirement setuptools (from versions: )
No matching distribution found for setuptools
python pip
|
show 7 more comments
I have the below problem, I am using command
pip install pyinstaller --proxy=http://webdefence.global.blackspider.com:80 --trusted-host=pypi.python.org
The problem I have is the proxy variable is not maintained through the installation process. It no longers has the proxy address when trying to install setuptools. I have tried using HTTP_PROXY
and HTTPS_PROXY
in my environment variables with no luck. Are there any other ways to set a proxy which will maintain through the pip install?
I have used -vvv to produce more error detail - pasted in at gist.github.com/blaggrob/19e7afcae2b4f1d36139fbf0a88a6651
Collecting pyinstaller
Using cached https://files.pythonhosted.org/packages/03/32/0e0de593f129bf1d1e77eed562496d154ef4460fd5cecfd78612ef39a0cc/PyInstaller-3.4.tar.gz
Installing build dependencies ... error
Complete output from command c:usersblaggrappdatalocalprogramspythonpython37-32scriptspython.exe -m pip install --ignore-installed --no-user --prefix C:UsersblaggrAppDataLocalTemppip-build-env-vd3w15r1 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --trusted-host pypi.python.org -- setuptools wheel:
Collecting setuptools
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Could not find a version that satisfies the requirement setuptools (from versions: )
No matching distribution found for setuptools
python pip
1
You can also set the proxy information in a configuration file, see the using a proxy server section. However, I find it surprising that the options are not carried across properly. I haven't confirmed this, but perhaps you should put the options before the packages?pip install --proxy ... PyInstaller
.
– Martijn Pieters♦
Nov 13 '18 at 11:40
Is there a way to know if it's reading from the ini file? I'm using the PIP_CONFIG_FILE environment variable but doesn't look like my ini file is being read.
– Rob Blagg
Nov 13 '18 at 12:48
Have you tried creating a file in%APPDATA%pippip.ini.
then? That would bec:users/blaggrappdatapippip.ini
on your system.
– Martijn Pieters♦
Nov 13 '18 at 12:55
Hi Martijn, I tried that and put the below into my ini file but it still didn't work. I'm not sure if it's even reading it. [global] proxy=webdefence.global.blackspider.com:80 [install] ignore-installed = true
– Rob Blagg
Nov 13 '18 at 13:50
1
I suspect this could be a bug in the new PEP 517 / 518 support. Can you try adding--no-build-isolation
to the command line?
– Martijn Pieters♦
Nov 19 '18 at 19:06
|
show 7 more comments
I have the below problem, I am using command
pip install pyinstaller --proxy=http://webdefence.global.blackspider.com:80 --trusted-host=pypi.python.org
The problem I have is the proxy variable is not maintained through the installation process. It no longers has the proxy address when trying to install setuptools. I have tried using HTTP_PROXY
and HTTPS_PROXY
in my environment variables with no luck. Are there any other ways to set a proxy which will maintain through the pip install?
I have used -vvv to produce more error detail - pasted in at gist.github.com/blaggrob/19e7afcae2b4f1d36139fbf0a88a6651
Collecting pyinstaller
Using cached https://files.pythonhosted.org/packages/03/32/0e0de593f129bf1d1e77eed562496d154ef4460fd5cecfd78612ef39a0cc/PyInstaller-3.4.tar.gz
Installing build dependencies ... error
Complete output from command c:usersblaggrappdatalocalprogramspythonpython37-32scriptspython.exe -m pip install --ignore-installed --no-user --prefix C:UsersblaggrAppDataLocalTemppip-build-env-vd3w15r1 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --trusted-host pypi.python.org -- setuptools wheel:
Collecting setuptools
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Could not find a version that satisfies the requirement setuptools (from versions: )
No matching distribution found for setuptools
python pip
I have the below problem, I am using command
pip install pyinstaller --proxy=http://webdefence.global.blackspider.com:80 --trusted-host=pypi.python.org
The problem I have is the proxy variable is not maintained through the installation process. It no longers has the proxy address when trying to install setuptools. I have tried using HTTP_PROXY
and HTTPS_PROXY
in my environment variables with no luck. Are there any other ways to set a proxy which will maintain through the pip install?
I have used -vvv to produce more error detail - pasted in at gist.github.com/blaggrob/19e7afcae2b4f1d36139fbf0a88a6651
Collecting pyinstaller
Using cached https://files.pythonhosted.org/packages/03/32/0e0de593f129bf1d1e77eed562496d154ef4460fd5cecfd78612ef39a0cc/PyInstaller-3.4.tar.gz
Installing build dependencies ... error
Complete output from command c:usersblaggrappdatalocalprogramspythonpython37-32scriptspython.exe -m pip install --ignore-installed --no-user --prefix C:UsersblaggrAppDataLocalTemppip-build-env-vd3w15r1 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --trusted-host pypi.python.org -- setuptools wheel:
Collecting setuptools
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
Could not find a version that satisfies the requirement setuptools (from versions: )
No matching distribution found for setuptools
python pip
python pip
edited Dec 31 '18 at 9:02
Cœur
17.5k9104145
17.5k9104145
asked Nov 13 '18 at 11:33
Rob BlaggRob Blagg
859
859
1
You can also set the proxy information in a configuration file, see the using a proxy server section. However, I find it surprising that the options are not carried across properly. I haven't confirmed this, but perhaps you should put the options before the packages?pip install --proxy ... PyInstaller
.
– Martijn Pieters♦
Nov 13 '18 at 11:40
Is there a way to know if it's reading from the ini file? I'm using the PIP_CONFIG_FILE environment variable but doesn't look like my ini file is being read.
– Rob Blagg
Nov 13 '18 at 12:48
Have you tried creating a file in%APPDATA%pippip.ini.
then? That would bec:users/blaggrappdatapippip.ini
on your system.
– Martijn Pieters♦
Nov 13 '18 at 12:55
Hi Martijn, I tried that and put the below into my ini file but it still didn't work. I'm not sure if it's even reading it. [global] proxy=webdefence.global.blackspider.com:80 [install] ignore-installed = true
– Rob Blagg
Nov 13 '18 at 13:50
1
I suspect this could be a bug in the new PEP 517 / 518 support. Can you try adding--no-build-isolation
to the command line?
– Martijn Pieters♦
Nov 19 '18 at 19:06
|
show 7 more comments
1
You can also set the proxy information in a configuration file, see the using a proxy server section. However, I find it surprising that the options are not carried across properly. I haven't confirmed this, but perhaps you should put the options before the packages?pip install --proxy ... PyInstaller
.
– Martijn Pieters♦
Nov 13 '18 at 11:40
Is there a way to know if it's reading from the ini file? I'm using the PIP_CONFIG_FILE environment variable but doesn't look like my ini file is being read.
– Rob Blagg
Nov 13 '18 at 12:48
Have you tried creating a file in%APPDATA%pippip.ini.
then? That would bec:users/blaggrappdatapippip.ini
on your system.
– Martijn Pieters♦
Nov 13 '18 at 12:55
Hi Martijn, I tried that and put the below into my ini file but it still didn't work. I'm not sure if it's even reading it. [global] proxy=webdefence.global.blackspider.com:80 [install] ignore-installed = true
– Rob Blagg
Nov 13 '18 at 13:50
1
I suspect this could be a bug in the new PEP 517 / 518 support. Can you try adding--no-build-isolation
to the command line?
– Martijn Pieters♦
Nov 19 '18 at 19:06
1
1
You can also set the proxy information in a configuration file, see the using a proxy server section. However, I find it surprising that the options are not carried across properly. I haven't confirmed this, but perhaps you should put the options before the packages?
pip install --proxy ... PyInstaller
.– Martijn Pieters♦
Nov 13 '18 at 11:40
You can also set the proxy information in a configuration file, see the using a proxy server section. However, I find it surprising that the options are not carried across properly. I haven't confirmed this, but perhaps you should put the options before the packages?
pip install --proxy ... PyInstaller
.– Martijn Pieters♦
Nov 13 '18 at 11:40
Is there a way to know if it's reading from the ini file? I'm using the PIP_CONFIG_FILE environment variable but doesn't look like my ini file is being read.
– Rob Blagg
Nov 13 '18 at 12:48
Is there a way to know if it's reading from the ini file? I'm using the PIP_CONFIG_FILE environment variable but doesn't look like my ini file is being read.
– Rob Blagg
Nov 13 '18 at 12:48
Have you tried creating a file in
%APPDATA%pippip.ini.
then? That would be c:users/blaggrappdatapippip.ini
on your system.– Martijn Pieters♦
Nov 13 '18 at 12:55
Have you tried creating a file in
%APPDATA%pippip.ini.
then? That would be c:users/blaggrappdatapippip.ini
on your system.– Martijn Pieters♦
Nov 13 '18 at 12:55
Hi Martijn, I tried that and put the below into my ini file but it still didn't work. I'm not sure if it's even reading it. [global] proxy=webdefence.global.blackspider.com:80 [install] ignore-installed = true
– Rob Blagg
Nov 13 '18 at 13:50
Hi Martijn, I tried that and put the below into my ini file but it still didn't work. I'm not sure if it's even reading it. [global] proxy=webdefence.global.blackspider.com:80 [install] ignore-installed = true
– Rob Blagg
Nov 13 '18 at 13:50
1
1
I suspect this could be a bug in the new PEP 517 / 518 support. Can you try adding
--no-build-isolation
to the command line?– Martijn Pieters♦
Nov 19 '18 at 19:06
I suspect this could be a bug in the new PEP 517 / 518 support. Can you try adding
--no-build-isolation
to the command line?– Martijn Pieters♦
Nov 19 '18 at 19:06
|
show 7 more comments
1 Answer
1
active
oldest
votes
You may have run into a bug with the new PEP 518 support implementation, where the isolated build environment created to install build-time dependencies is lacking the necessary proxy configuration.
You can bypass the new feature by using --no-build-isolation
on the command line, by setting no-build-isolation=no
in your configuration file or by setting the PIP_NO_BUILD_ISOLATION=no
environment variable (yes, these last two options are counter-intuitive).
This does require that setuptools
and wheels
then are already installed before you can install pyinstaller
.
I've filed a new issue with the pip
project to track this, I don't believe it has been reported before.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53280131%2fpython-3-7-applying-the-proxy-to-all-parts-of-pip-installation-failing-to-main%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You may have run into a bug with the new PEP 518 support implementation, where the isolated build environment created to install build-time dependencies is lacking the necessary proxy configuration.
You can bypass the new feature by using --no-build-isolation
on the command line, by setting no-build-isolation=no
in your configuration file or by setting the PIP_NO_BUILD_ISOLATION=no
environment variable (yes, these last two options are counter-intuitive).
This does require that setuptools
and wheels
then are already installed before you can install pyinstaller
.
I've filed a new issue with the pip
project to track this, I don't believe it has been reported before.
add a comment |
You may have run into a bug with the new PEP 518 support implementation, where the isolated build environment created to install build-time dependencies is lacking the necessary proxy configuration.
You can bypass the new feature by using --no-build-isolation
on the command line, by setting no-build-isolation=no
in your configuration file or by setting the PIP_NO_BUILD_ISOLATION=no
environment variable (yes, these last two options are counter-intuitive).
This does require that setuptools
and wheels
then are already installed before you can install pyinstaller
.
I've filed a new issue with the pip
project to track this, I don't believe it has been reported before.
add a comment |
You may have run into a bug with the new PEP 518 support implementation, where the isolated build environment created to install build-time dependencies is lacking the necessary proxy configuration.
You can bypass the new feature by using --no-build-isolation
on the command line, by setting no-build-isolation=no
in your configuration file or by setting the PIP_NO_BUILD_ISOLATION=no
environment variable (yes, these last two options are counter-intuitive).
This does require that setuptools
and wheels
then are already installed before you can install pyinstaller
.
I've filed a new issue with the pip
project to track this, I don't believe it has been reported before.
You may have run into a bug with the new PEP 518 support implementation, where the isolated build environment created to install build-time dependencies is lacking the necessary proxy configuration.
You can bypass the new feature by using --no-build-isolation
on the command line, by setting no-build-isolation=no
in your configuration file or by setting the PIP_NO_BUILD_ISOLATION=no
environment variable (yes, these last two options are counter-intuitive).
This does require that setuptools
and wheels
then are already installed before you can install pyinstaller
.
I've filed a new issue with the pip
project to track this, I don't believe it has been reported before.
edited Nov 22 '18 at 1:47
answered Nov 19 '18 at 19:19
Martijn Pieters♦Martijn Pieters
702k13224392274
702k13224392274
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53280131%2fpython-3-7-applying-the-proxy-to-all-parts-of-pip-installation-failing-to-main%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
You can also set the proxy information in a configuration file, see the using a proxy server section. However, I find it surprising that the options are not carried across properly. I haven't confirmed this, but perhaps you should put the options before the packages?
pip install --proxy ... PyInstaller
.– Martijn Pieters♦
Nov 13 '18 at 11:40
Is there a way to know if it's reading from the ini file? I'm using the PIP_CONFIG_FILE environment variable but doesn't look like my ini file is being read.
– Rob Blagg
Nov 13 '18 at 12:48
Have you tried creating a file in
%APPDATA%pippip.ini.
then? That would bec:users/blaggrappdatapippip.ini
on your system.– Martijn Pieters♦
Nov 13 '18 at 12:55
Hi Martijn, I tried that and put the below into my ini file but it still didn't work. I'm not sure if it's even reading it. [global] proxy=webdefence.global.blackspider.com:80 [install] ignore-installed = true
– Rob Blagg
Nov 13 '18 at 13:50
1
I suspect this could be a bug in the new PEP 517 / 518 support. Can you try adding
--no-build-isolation
to the command line?– Martijn Pieters♦
Nov 19 '18 at 19:06