-
Notifications
You must be signed in to change notification settings - Fork 220
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
Update/Install in conda failing with the error: An HTTP error occurred when trying to retrieve this URL #9504
Comments
Hi, I have seen that the issue is closed. Could you let me know how you solve it. I have exactly the same error. I have this issue only at work here are my settings : .condarc file:
Here is the error message i receive : C:\Users\jerpetit\AppData\Local\Continuum\anaconda3>conda update conda CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.continuum.io/pkgs/r/noarch/repodata.json.bz2 An HTTP error occurred when trying to retrieve this URL. |
Hi Jeorme, Solution is to make changes in .condarc file. You would need to add proxy servers in the file to get rid of these errors. |
I recently got this issue resolved. Use this command to see proxy_servers If any proxy server is present in the configuration. Kindly use |
Followed ashkrishna100 above, set ssl_verify false, turned off firewall & still got SSLError bad handshake! |
Get a fresh copy of condarc file. Don't set SSL verify as of now. Then give it a try. |
Hi
Thanks for the email. Unfortunately, as a newcomer to conda, I am not sure I have done what you suggest properly – my attempts to update still fail.
condarc file: channels:
- defaults
ssl_verify: false
report error: true
envs_dirs:
SSL verify: set to “false”.
I am attaching the output of “conda config –show” & “conda update conda”.
Thanks in anticipation of you help.
Cheers, John
From: ashukrishna100
Sent: Thursday, September 27, 2018 11:21 PM
To: ContinuumIO/anaconda-issues
Cc: johnrogers1939 ; Comment
Subject: Re: [ContinuumIO/anaconda-issues] Update/Install in conda failing with the error: An HTTP error occurred when trying to retrieve this URL (#9504)
Get a fresh copy of condarc file. Don't set SSL verify as of now. Then give it a try.
Remove environmental variables and also open credentials manager. Clear my saved passwords over there.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sorry – forgot the attachments! Cheers, John
From: ashukrishna100
Sent: Thursday, September 27, 2018 11:21 PM
To: ContinuumIO/anaconda-issues
Cc: johnrogers1939 ; Comment
Subject: Re: [ContinuumIO/anaconda-issues] Update/Install in conda failing with the error: An HTTP error occurred when trying to retrieve this URL (#9504)
Get a fresh copy of condarc file. Don't set SSL verify as of now. Then give it a try.
Remove environmental variables and also open credentials manager. Clear my saved passwords over there.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi John, Also if there are corporate firewalls,please set the proxy in the prompt by using |
Why would it stop working from one second to another? |
you should enter the command in the anaconda prompt instead of in cmd |
It is because of library loading. Behavior changed in recent python builds. See https://conda.io/projects/conda/en/latest/user-guide/troubleshooting.html#condahttperror-http-000-connection-failed for more details and ideas on workarounds. We are working to improve conda, too, so that workarounds are not necessary. The way that Windows does shared library finding is pretty annoying, but we're working to make it better. |
Hi. I'm also getting "### CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/r/noarch/repodata.json.bz2". Nothing Works I cannot install packages or update conda or any existing packages. I've tried the following from this and other posts - though some I am unable to do because I don't know how (indicated below). I am an analytics guy so not super familiar with Command line code. No luck with anything. I am on a corporate network with a firewall and using the Navigator Prompt. Can someone please help me! Does it come down to me needing a proxy server or path of a certificate bundle from my network admin? Thanks ahead of time!
|
@Jaguar100 As you are on a corporate network with a firewall, it is likely you will need to add your proxy server to your .condarc file. |
Thanks @csoja. How does one access, open and tweak/change the ".condarc"
file?
…On Fri, May 3, 2019 at 10:17 AM csoja ***@***.***> wrote:
@Jaguar100 <https://github.com/Jaguar100> As you are on a corporate
network with a firewall, it is likely you will need to add your proxy
server to your .condarc file.
See the conda documentation:
https://conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html#configure-conda-for-use-behind-a-proxy-server-proxy-servers
Assuming you are on Windows, you should open the Anaconda Prompt and type
"conda info". This will tell you where you .condarc file is located among
other things. It is a text file, so you can edit it however you edit other
text files.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9504 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALSZ4QTKRJKCC3PP4KJ6CUDPTRCPJANCNFSM4FC4NW6Q>
.
|
I had this same issue
solved it for me. I'm running Conda 4.8.2 on Windows 10 in 'corporate' style environment. |
Hi, I am also facing the same issue on my work PC. Can someone help. (base) C:\Users\sanjay.semwal>conda create --name env1 CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json An HTTP error occurred when trying to retrieve this URL. If your current network has https://www.anaconda.com blocked, please file |
(base) C:\Users\sjoshi>conda config --show
I tried the things you guys mentioned above, but I can't fix the issue. CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json An HTTP error occurred when trying to retrieve this URL. If your current network has https://www.anaconda.com blocked, please file 'https://repo.anaconda.com/pkgs/main/win-64' Help!!! |
your SSL module is not available. |
Change "HTTPS" to "HTTP" in. Condarc. |
Try to run "conda activate base" first, then it will probably ask you to initializa env. |
It really works for me thanks |
I had solved this issue by adding proxy_server in .condarc file. |
I am using my corporate admin account on Windows 7. And I have also disabled ssl_verfy.
Below is the conda info and .condrac file contents:
(base) C:\Windows\system32>conda info
active environment : base
active env location : C:\Anaconda
shell level : 1
user config file : C:\Users\superys.condarc
populated config files : C:\Users\superys.condarc
conda version : 4.5.4
conda-build version : 3.10.5
python version : 3.6.5.final.0
base environment : C:\Anaconda (writable)
channel URLs : https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/win-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/win-64
https://repo.anaconda.com/pkgs/pro/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\Anaconda\pkgs
C:\Users\superys\AppData\Local\conda\conda\pkgs
envs directories : C:\Anaconda\envs
C:\Users\superys\AppData\Local\conda\conda\envs
C:\Users\superys.conda\envs
platform : win-64
user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Windows/7 Wi
ndows/6.1.7601
administrator : True
netrc file : None
offline mode : False
.condarc file:
channels:
ssl_verify: false
Error:
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pk
gs/pro/noarch/repodata.json.bz2>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='repo.anaconda.com', por
t=443): Max retries exceeded with url: /pkgs/pro/noarch/repodata.json.bz2 (Cause
d by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0
x0000000005046400>: Failed to establish a new connection: [WinError 10061] No co
nnection could be made because the target machine actively refused it',))",),)
The text was updated successfully, but these errors were encountered: