ERROR conda.auxlib.logz:stringify(171): Expecting value: line 1 column 1 (char 0)

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 ~/.condarcis a misconfiguration, which can .condarcbe deleted first and then reconfigured .

Guess you like

Origin blog.csdn.net/raelum/article/details/130515634