Collecting package metadata (current_repodata.json): failed
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 251, in _load
raise UnavailableInvalidChannel(self.url_w_repodata_fn, 404)
conda.exceptions.UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: anaconda/pkgs/free
channel url: https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
error code: 404
You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state,
and use `conda config --show-sources` to view config file locations.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 248, in _load
repodata_fn=self.repodata_fn)
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 598, in fetch_repodata_remote_request
raise Response304ContentUnchanged()
conda.core.subdir_data.Response304ContentUnchanged
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1079, in __call__
return func(*args, **kwargs)
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 84, in _main
exit_code = do_call(args, p)
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 83, in do_call
return getattr(module, func_name)(args, parser)
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/cli/main_install.py", line 20, in execute
install(args, parser, 'install')
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 265, in install
should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]),
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 117, in solve_for_transaction
should_retry_solve)
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 158, in solve_for_diff
force_remove, should_retry_solve)
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 262, in solve_final_state
ssc = self._collect_all_metadata(ssc)
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/common/io.py", line 88, in decorated
return f(*args, **kwds)
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 425, in _collect_all_metadata
index, r = self._prepare(prepared_specs)
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 1021, in _prepare
self.subdirs, prepared_specs, self._repodata_fn)
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/index.py", line 228, in get_reduced_index
repodata_fn=repodata_fn)
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 105, in query_all
result = tuple(concat(executor.map(subdir_query, channel_urls)))
File "/home/wgj/anaconda3/lib/python3.7/concurrent/futures/_base.py", line 598, in result_iterator
yield fs.pop().result()
File "/home/wgj/anaconda3/lib/python3.7/concurrent/futures/_base.py", line 428, in result
return self.__get_result()
File "/home/wgj/anaconda3/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/home/wgj/anaconda3/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 98, in <lambda>
package_ref_or_match_spec))
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 110, in query
self.load()
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 174, in load
_internal_state = self._load()
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 255, in _load
return self._load()
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 263, in _load
mod_etag_headers.get('_mod'))
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 311, in _read_local_repdata
_internal_state = self._process_raw_repodata_str(raw_repodata_str)
File "/home/wgj/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 349, in _process_raw_repodata_str
json_obj = json.loads(raw_repodata_str or '{}')
File "/home/wgj/anaconda3/lib/python3.7/json/__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "/home/wgj/anaconda3/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/home/wgj/anaconda3/lib/python3.7/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 37429 column 19 (char 1015629)
`$ /home/wgj/anaconda3/bin/conda install pytorch torchvision cudatoolkit=10.1 -c pytorch`
environment variables:
CIO_TEST=<not set>
CONDA_DEFAULT_ENV=base
CONDA_EXE=/home/wgj/anaconda3/bin/conda
CONDA_PREFIX=/home/wgj/anaconda3
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHON_EXE=/home/wgj/anaconda3/bin/python
CONDA_ROOT=/home/wgj/anaconda3
CONDA_SHLVL=1
CURL_CA_BUNDLE=<not set>
LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64:
PATH=/home/wgj/anaconda3/bin:/usr/local/cuda-10.2/bin:/home/wgj/anaconda3/b
in:/home/wgj/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sb
in:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
WINDOWPATH=2
active environment : base
active env location : /home/wgj/anaconda3
shell level : 1
user config file : /home/wgj/.condarc
populated config files : /home/wgj/.condarc
conda version : 4.8.5
conda-build version : 3.20.3
python version : 3.7.7.final.0
virtual packages : __cuda=11.0
__glibc=2.27
base environment : /home/wgj/anaconda3 (writable)
channel URLs : https://conda.anaconda.org/pytorch/linux-64
https://conda.anaconda.org/pytorch/noarch
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/linux-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/noarch
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/linux-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/noarch
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/linux-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/noarch
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/linux-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/noarch
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /home/wgj/anaconda3/pkgs
/home/wgj/.conda/pkgs
envs directories : /home/wgj/anaconda3/envs
/home/wgj/.conda/envs
platform : linux-64
user-agent : conda/4.8.5 requests/2.24.0 CPython/3.7.7 Linux/5.4.0-51-generic ubuntu/18.04.5 glibc/2.27
UID:GID : 1000:1000
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?
[y/N]:
Timeout reached. No report sent.
将源改为默认,就好了,执行下面命令…
conda config --remove-key channels
(base) wgj@Think:~$ conda install pytorch==1.5.1 torchvision==0.6.1 cudatoolkit=10.1 -c pytorch
Collecting package metadata (current_repodata.json): done
Solving environment: done