Open AlphonseZetta10 opened 3 months ago
This exact command works for my machine. Could it be that your config is not readable?
This error should improve nonetheless
Could it be that your config is not readable?
I don't think so. I tried to remove --global
and met the same error.
I tried in CMD too and it returned this
error: unexpected argument '[https://prefix.dev/conda-forge]}'' found
Usage: pixi config set [OPTIONS] <KEY> [VALUE]
For more information, try '--help'.
it works fine
New updates: I tried in zsh in ConEmu and Windows Terminal, and it works, so maybe something wrong with the powershell and cmd.
I can confirm that only with "Command Prompt" I get this error:
error: unexpected argument '[https://prefix.dev/conda-forge]}' found
Usage: pixi config set [OPTIONS] <KEY> [VALUE]
For more information, try '--help'.
You can solve this by escape the quotes with quotes:
pixi config set --global mirrors "{""https://conda.anaconda.org/"": [""https://prefix.dev/conda-forge""]}"
I can confirm that only with "Command Prompt" I get this error:
error: unexpected argument '[https://prefix.dev/conda-forge]}' found Usage: pixi config set [OPTIONS] <KEY> [VALUE] For more information, try '--help'.
You can solve this by escape the quotes with quotes:
pixi config set --global mirrors "{""https://conda.anaconda.org/"": [""https://prefix.dev/conda-forge""]}"
Thank you. I have tried it and it DO fix the problem in Command Prompt. But in Powershell it still report error. Could it be a locale-related error?
Checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
Just like what manual said
OS: Windows 10 19044.4651 Terminal: Windows Terminal Shell: Powershell
Issue description
Expected behavior
write the mirror setting into global config located in
%USERPROFILE%/.pixi