conda-forge / conda-forge/miniforge

miniforge3 tries to access anaconda.org when creating a conda environment

Open
#784 12 comments 2 reactions 0 assignees View on GitHub
question
Dominant language
Shell
Stars
10.2k
Forks
530
PR merge metrics
No merged PRs in 30d

Description

### Comment:

### **The issue:**
While working on a system that has anaconda.org blocked by IT, creation of a conda environment fails because miniforge3 attempts to connect to https//conda.anaconda.org/conda-forge/osx-64. Both `conda config --show channels` and `conda config --show-sources` show that the only channel in the config is `conda-forge`. _Is there a way to avoid contacting anaconda.org?_

### **The command:**
```
conda create --name test_env conda-forge::python==3.12.5
```

### **The portions of the error mentioning anaconda:**
```
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /conda-forge/osx-64/repodata.json.zst (Caused by ProtocolError('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer')))
```

```
raise CondaHTTPError(
conda.exceptions.CondaHTTPError: HTTP 000 CONNECTION FAILED for url <[https://conda.anaconda.org/conda-forge/osx-64/repodata.json>](https://conda.anaconda.org/conda-forge/osx-64/repodata.json%3E)
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.
'https//conda.anaconda.org/conda-forge/osx-64'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.