【conda 安装软件报错 ERROR conda.auxlib.logz:stringify(163): Expecting value: line 1 column 1 (char 0)】

conda install matplotlib
反复报错,报错信息如下
Collecting package metadata (current_repodata.json): \ ERROR conda.auxlib.logz:stringify(163): Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File “/user/miniconda3/lib/python3.9/site-packages/requests/models.py”, line 971, in json
return complexjson.loads(self.text, **kwargs)
File “/user/miniconda3/lib/python3.9/json/init.py”, line 346, in loads
return _default_decoder.decode(s)
File “/user/miniconda3/lib/python3.9/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/user/miniconda3/lib/python3.9/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)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/user/miniconda3/lib/python3.9/site-packages/conda/auxlib/logz.py”, line 157, in stringify
requests_models_Response_builder(builder, obj)
File “/user/miniconda3/lib/python3.9/site-packages/conda/auxlib/logz.py”, line 133, in requests_models_Response_builder
resp = response_object.json()
File “/user/miniconda3/lib/python3.9/site-packages/requests/models.py”, line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0) | ERROR conda.auxlib.logz:stringify(163): Expecting value: line 1 column 1 (char 0)

判断是网络的问题,直接修改~/.condarc 文件中的镜像源,恢复成default。更换源之后可行。

你可能感兴趣的:(conda,python,开发语言)