problem background
When using conda to install a package, a long error was reported, here are only the first few lines intercepted:
Collecting package metadata (repodata.json): - ERROR conda.auxlib.logz:stringify(171): Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/home/user/miniconda3/lib/python3.10/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "/home/user/miniconda3/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/home/user/miniconda3/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/home/user/miniconda3/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
solution
The root cause ~/.condarc
is a misconfiguration, which can .condarc
be deleted first and then reconfigured .