conda-forge / conda-forge/conda-forge.github.io
'setup_conda_rc' is not recognized as an internal or external command after reinstalling Miniforge
- Dominant language
- JavaScript
- Stars
- 170
- Forks
- 320
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 5
Description
### Solution to issue cannot be found in the documentation.
- [x] I checked the documentation.
### Issue
This is somewhat related to https://github.com/conda-forge/miniforge/issues/791
I had the same issue as the issue mentioned above, and activating a new environment allowed me to
`python build-locally.py`.
I commented on it here: https://github.com/conda-forge/miniforge/issues/791#issuecomment-3513499055
I was starting to have some issues that I don't remember anymore that led me to uninstall/reinstall miniforge. I used the latest windows installer. Now every time I try to build locally, the scripts starts, and after environment is created, I get this:
```powershell
Summary:
Install: 245 packages
Total download: 0 B
---------------------------------------------------------------------------------------------------
Transaction starting
warning libmamba [conda-25.9.1-py312h2e8e312_0] The following files were already present in the environment:
- Scripts\activate.bat
- condabin\activate.bat
Transaction finished
To activate this environment, use:
micromamba activate D:\GitClones\gstreamer-feedstock\miniforge3
Or to execute a single command in this environment, use:
micromamba run -p D:\GitClones\gstreamer-feedstock\miniforge3 mycommand
Removing D:\GitClones\gstreamer-feedstock\miniforge3-micromamba-1344
Configuring conda
Activating environment
Setting up configuration
'setup_conda_rc' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
File "D:\GitClones\gstreamer-feedstock\build-locally.py", line 131, in
main()
File "D:\GitClones\gstreamer-feedstock\build-locally.py", line 123, in main
run_win_build(ns)
File "D:\GitClones\gstreamer-feedstock\build-locally.py", line 50, in run_win_build
subprocess.check_call(["cmd", "/D", "/Q", "/C", f"CALL {script}"])
File "D:\envs\conda-forge_env\Lib\subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmd', '/D', '/Q', '/C', 'CALL .scripts/run_win_build.bat']' returned non-zero exit status 9009.
(conda-forge_env) (conda-forge_env) PS D:\GitClones\gstreamer-feedstock>
```
### Installed packages
```shell
(conda-forge_env) (conda-forge_env) PS D:\GitClones\gstreamer-feedstock> conda list
# packages in environment at D:\envs\conda-forge_env:
#
# Name Version Build Channel
anyio 4.11.0 pyhcf101f3_0 conda-forge
archspec 0.2.5 pyhd8ed1ab_0 conda-forge
attrs 25.4.0 pyh71513ae_0 conda-forge
backports 1.0 pyhd8ed1ab_5 conda-forge
backports.strenum 1.3.1 haf276df_2 conda-forge
backports.tarfile 1.2.0 pyhd8ed1ab_1 conda-forge
beautifulsoup4 4.14.2 pyha770c72_0 conda-forge
blinker 1.9.0 pyhff2d567_0 conda-forge
boltons 25.0.0 pyhd8ed1ab_0 conda-forge
boolean.py 5.0 pyhd8ed1ab_0 conda-forge
brotli-python 1.2.0 py312h9d5906e_0 conda-forge
bzip2 1.0.8 h0ad9c76_8 conda-forge
ca-certificates 2025.11.12 h4c7d964_0 conda-forge
certifi 2025.11.12 pyhd8ed1ab_0 conda-forge
cffi 2.0.0 py312he06e257_1 conda-forge
chardet 5.2.0 pyhd8ed1ab_3 conda-forge
charset-normalizer 3.4.4 pyhd8ed1ab_0 conda-forge
cirun 0.30 pyhd8ed1ab_1 conda-forge
click 8.3.0 pyh7428d3b_0 conda-forge
colorama 0.4.6 pyhd8ed1ab_1 conda-forge
conda 25.9.1 py312h2e8e312_0 conda-forge
conda-build 25.9.0 py312h5ae4e53_1 conda-forge
conda-forge-pinning 2025.11.12.18.57.28 hd8ed1ab_0 conda-forge
conda-index 0.7.0 pyhd8ed1ab_0 conda-forge
conda-libmamba-solver 25.4.0 pyhd8ed1ab_0 conda-forge
conda-package-handling 2.4.0 pyh7900ff3_2 conda-forge
conda-package-streaming 0.12.0 pyhd8ed1ab_0 conda-forge
conda-smithy 3.53.0 win_pyhf1ceabd_0 conda-forge
cpp-expected 1.3.1 h477610d_0 conda-forge
cryptography 46.0.3 py312h84d000f_0 conda-forge
deprecated 1.3.1 pyhd8ed1ab_0 conda-forge
distlib 0.4.0 pyhd8ed1ab_0 conda-forge
distro 1.9.0 pyhd8ed1ab_1 conda-forge
editables 0.5 pyhd8ed1ab_1 conda-forge
evalidate 2.0.5 pyhe01879c_0 conda-forge
exceptiongroup 1.3.0 pyhd8ed1ab_0 conda-forge
filelock 3.20.0 pyhd8ed1ab_0 conda-forge
fmt 12.0.0 h29169d4_0 conda-forge
frozendict 2.4.6 py312he06e257_1 conda-forge
gitdb 4.0.12 pyhd8ed1ab_0 conda-forge
gitpython 3.1.45 pyhff2d567_0 conda-forge
h11 0.16.0 pyhd8ed1ab_0 conda-forge
h2 4.3.0 pyhcf101f3_0 conda-forge
hatch 1.14.1 pyhd8ed1ab_0 conda-forge
hatchling 1.27.0 pypyhd8ed1ab_0 conda-forge
hpack 4.1.0 pyhd8ed1ab_0 conda-forge
httpcore 1.0.9 pyh29332c3_0 conda-forge
httpx 0.28.1 pyhd8ed1ab_0 conda-forge
hyperframe 6.1.0 pyhd8ed1ab_0 conda-forge
hyperlink 21.0.0 pyh29332c3_1 conda-forge
idna 3.11 pyhd8ed1ab_0 conda-forge
importlib-metadata 8.7.0 pyhe01879c_1 conda-forge
importlib_resources 6.5.2 pyhd8ed1ab_0 conda-forge
isodate 0.7.2 pyhd8ed1ab_1 conda-forge
jaraco.classes 3.4.0 pyhd8ed1ab_2 conda-forge
jaraco.context 6.0.1 pyhd8ed1ab_0 conda-forge
jaraco.functools 4.3.0 pyhd8ed1ab_0 conda-forge
jinja2 3.1.6 pyhd8ed1ab_0 conda-forge
jsonpatch 1.33 pyhd8ed1ab_1 conda-forge
jsonpointer 3.0.0 py312h2e8e312_2 conda-forge
jsonschema 4.25.1 pyhe01879c_0 conda-forge
jsonschema-specifications 2025.9.1 pyhcf101f3_0 conda-forge
keyring 25.6.0 pyh7428d3b_0 conda-forge
krb5 1.21.3 hdf4eb48_0 conda-forge
libarchive 3.8.2 gpl_h26aea39_100 conda-forge
libcurl 8.17.0 h43ecb02_0 conda-forge
libexpat 2.7.1 hac47afa_0 conda-forge
libffi 3.5.2 h52bdfb6_0 conda-forge
libgit2 1.9.1 hce7164d_1 conda-forge
libiconv 1.18 hc1393d2_2 conda-forge
liblief 0.16.6 hac47afa_1 conda-forge
liblzma 5.8.1 h2466b09_2 conda-forge
libmamba 2.3.3 h5fbfb43_1 conda-forge
libmambapy 2.3.3 py312hc175272_1 conda-forge
libsodium 1.0.20 hc70643c_0 conda-forge
libsolv 0.7.35 h8883371_0 conda-forge
libsqlite 3.51.0 hf5d6505_0 conda-forge
libssh2 1.11.1 h9aa295b_0 conda-forge
libxml2 2.15.1 h5d26750_0 conda-forge
libxml2-16 2.15.1 h692994f_0 conda-forge
libzlib 1.3.1 h2466b09_2 conda-forge
license-expression 30.4.4 pyhe01879c_0 conda-forge
lz4-c 1.10.0 h2466b09_1 conda-forge
lzo 2.10 h6a83c73_1002 conda-forge
m2-conda-epoch 20250515 0_x86_64 conda-forge
m2-msys2-runtime 3.6.1.4 hc364b38_6 conda-forge
m2-patch 2.7.6.3 hc364b38_6 conda-forge
markdown-it-py 4.0.0 pyhd8ed1ab_0 conda-forge
markupsafe 3.0.3 py312h05f76fc_0 conda-forge
mbedtls 3.6.3.1 he0c23c2_0 conda-forge
mdurl 0.1.2 pyhd8ed1ab_1 conda-forge
menuinst 2.4.1 py312hbb81ca0_0 conda-forge
more-itertools 10.8.0 pyhd8ed1ab_0 conda-forge
msgpack-python 1.1.2 py312hf90b1b7_1 conda-forge
msrest 0.6.21 pyh44b312d_0 conda-forge
nlohmann_json-abi 3.12.0 h0f90c79_1 conda-forge
oauthlib 3.3.1 pyhd8ed1ab_0 conda-forge
openssl 3.6.0 h725018a_0 conda-forge
packaging 25.0 pyh29332c3_1 conda-forge
pathspec 0.12.1 pyhd8ed1ab_1 conda-forge
pexpect 4.9.0 pyhd8ed1ab_1 conda-forge
pkginfo 1.12.1.2 pyhd8ed1ab_0 conda-forge
platformdirs 4.5.0 pyhcf101f3_0 conda-forge
pluggy 1.6.0 pyhd8ed1ab_0 conda-forge
psutil 7.1.3 py312he5662c2_0 conda-forge
ptyprocess 0.7.0 pyhd8ed1ab_1 conda-forge
py-lief 0.16.6 py312hbb81ca0_1 conda-forge
pybind11-abi 4 hd8ed1ab_3 conda-forge
pycosat 0.6.6 py312he06e257_3 conda-forge
pycparser 2.22 pyh29332c3_1 conda-forge
pycryptodome 3.23.0 py312he06e257_1 conda-forge
pygit2 1.18.2 py312he5662c2_1 conda-forge
pygithub 2.8.1 pyhd8ed1ab_0 conda-forge
pygments 2.19.2 pyhd8ed1ab_0 conda-forge
pyjwt 2.10.1 pyhd8ed1ab_0 conda-forge
pynacl 1.6.0 py312he06e257_0 conda-forge
pysocks 1.7.1 pyh09c184e_7 conda-forge
python 3.12.12 h0159041_1_cpython conda-forge
python-dateutil 2.9.0.post0 pyhe01879c_2 conda-forge
python-libarchive-c 5.3 pyhe01879c_1 conda-forge
python_abi 3.12 8_cp312 conda-forge
pytz 2025.2 pyhd8ed1ab_0 conda-forge
pywin32-ctypes 0.2.3 py312h2e8e312_3 conda-forge
pyyaml 6.0.3 py312h05f76fc_0 conda-forge
rattler-build 0.49.0 h18a1a76_0 conda-forge
rattler-build-conda-compat 1.4.9 pyhd8ed1ab_0 conda-forge
referencing 0.37.0 pyhcf101f3_0 conda-forge
reproc 14.2.5.post0 h2466b09_0 conda-forge
reproc-cpp 14.2.5.post0 he0c23c2_0 conda-forge
requests 2.32.5 pyhd8ed1ab_0 conda-forge
requests-oauthlib 2.0.0 pyhd8ed1ab_1 conda-forge
rich 14.2.0 pyhcf101f3_0 conda-forge
ripgrep 15.1.0 h77a83cd_0 conda-forge
rpds-py 0.28.0 py312hdabe01f_2 conda-forge
ruamel.yaml 0.18.16 py312he06e257_0 conda-forge
ruamel.yaml.clib 0.2.14 py312he06e257_0 conda-forge
scrypt 0.9.4 py312h5353228_1 conda-forge
setuptools 80.9.0 pyhff2d567_0 conda-forge
shellingham 1.5.4 pyhd8ed1ab_2 conda-forge
simdjson 4.0.7 h49e36cd_0 conda-forge
six 1.17.0 pyhe01879c_1 conda-forge
smmap 5.0.2 pyhd8ed1ab_0 conda-forge
sniffio 1.3.1 pyhd8ed1ab_2 conda-forge
soupsieve 2.8 pyhd8ed1ab_0 conda-forge
tk 8.6.13 h2c6b04d_2 conda-forge
tomli 2.3.0 pyhcf101f3_0 conda-forge
tomli-w 1.2.0 pyhd8ed1ab_0 conda-forge
tomlkit 0.13.3 pyha770c72_0 conda-forge
toolz 1.1.0 pyhd8ed1ab_1 conda-forge
tqdm 4.67.1 pyhd8ed1ab_1 conda-forge
trove-classifiers 2025.9.11.17 pyhd8ed1ab_0 conda-forge
truststore 0.10.3 pyhe01879c_0 conda-forge
typer 0.20.0 pyhefaf540_1 conda-forge
typer-slim 0.20.0 pyhcf101f3_1 conda-forge
typer-slim-standard 0.20.0 h4daf872_1 conda-forge
typing-extensions 4.15.0 h396c80c_0 conda-forge
typing_extensions 4.15.0 pyhcf101f3_0 conda-forge
tzdata 2025b h78e105d_0 conda-forge
ucrt 10.0.26100.0 h57928b3_0 conda-forge
urllib3 2.5.0 pyhd8ed1ab_0 conda-forge
userpath 1.9.2 pyhd8ed1ab_0 conda-forge
uv 0.9.8 h3bd95fe_0 conda-forge
vc 14.3 h2b53caa_32 conda-forge
vc14_runtime 14.44.35208 h818238b_32 conda-forge
vcomp14 14.44.35208 h818238b_32 conda-forge
virtualenv 20.35.4 pyhd8ed1ab_0 conda-forge
vsts-python-api 0.1.25 pyhd8ed1ab_2 conda-forge
win_inet_pton 1.1.0 pyh7428d3b_8 conda-forge
wrapt 1.17.3 py312he06e257_1 conda-forge
yaml 0.2.5 h6a83c73_3 conda-forge
yaml-cpp 0.8.0 he0c23c2_0 conda-forge
zipp 3.23.0 pyhd8ed1ab_0 conda-forge
zstandard 0.25.0 py312he5662c2_1 conda-forge
zstd 1.5.7 hbeecb71_2 conda-forge
(conda-forge_env) (conda-forge_env) PS D:\GitClones\gstreamer-feedstock>
```
### Environment info
```shell
(conda-forge_env) (conda-forge_env) PS D:\GitClones\gstreamer-feedstock> conda info
active environment : conda-forge_env
active env location : D:\envs\conda-forge_env
shell level : 1
user config file : C:\Users\Tim\.condarc
populated config files : C:\Users\Tim\miniconda3\.condarc
C:\Users\Tim\.condarc
conda version : 25.9.1
conda-build version : not installed
python version : 3.13.0.final.0
solver : libmamba (default)
virtual packages : __archspec=1=skylake
__conda=25.9.1=0
__cuda=8.0=0
__win=10.0.19045=0
base environment : C:\Users\Tim\miniconda3 (writable)
conda av data dir : C:\Users\Tim\miniconda3\etc\conda
conda av metadata url : None
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/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : d:\pkgs
envs directories : d:\envs
C:\Users\Tim\miniconda3\envs
C:\Users\Tim\.conda\envs
C:\Users\Tim\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/25.9.1 requests/2.32.3 CPython/3.13.0 Windows/10 Windows/10.0.19045 solver/libmamba conda-libmamba-solver/25.4.0 libmambapy/2.3.3 aau/0.7.0 c/. s/. e/.
administrator : False
netrc file : None
offline mode : False
```
Contributor guide
Assessment
This issue has not been assessed yet.