conda install -c anaconda无法通过anaconda安装任何软件包

时间:2018-10-24 22:24:23

标签: linux install anaconda

我发现我的anaconda无法通过anaconda安装任何包裹。有人可以帮忙吗? (deformetrica)[qiningliu @ localhost〜] $ conda安装-c pytorch -c conda-forge -c anaconda -c aramislab deformetrica 解决环境:失败

>>>>>>>>>>>>>>>>>>>>>>错误报告<<<<<<<<<<<<<<<<<<<<<<< / h1>
Traceback (most recent call last):
  File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 819, in __call__
    return func(*args, **kwargs)
  File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 78, in _main
    exit_code = do_call(args, p)
  File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/cli/conda_argparse.py", line 77, in do_call
    exit_code = getattr(module, func_name)(args, parser)
  File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/cli/main_install.py", line 11, in execute
    install(args, parser, 'install')
  File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/cli/install.py", line 235, in install
    force_reinstall=context.force,
  File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 505, in solve_for_transaction
    force_remove, force_reinstall)
  File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 438, in solve_for_diff
    final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
  File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 179, in solve_final_state
    index, r = self._prepare(prepared_specs)
  File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 560, in _prepare
    self.subdirs, prepared_specs)
  File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/index.py", line 215, in get_reduced_index
    new_records = query_all(spec)
  File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/index.py", line 184, in query_all
    return tuple(concat(future.result() for future in as_completed(futures)))
  File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/subdir_data.py", line 94, in query
    self.load()
  File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/subdir_data.py", line 148, in load
    _internal_state = self._load()
  File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/subdir_data.py", line 235, in _load
    _internal_state = self._process_raw_repodata_str(raw_repodata_str)
  File "/home/qiningliu/anaconda3/lib/python3.6/site-packages/conda/core/subdir_data.py", line 348, in _process_raw_repodata_str
    info['fn'] = fn
TypeError: 'NoneType' object does not support item assignment

$ /home/qiningliu/anaconda3/bin/conda install -c pytorch -c conda-forge -c anaconda -c aramislab deformetrica

1 个答案:

答案 0 :(得分:0)

对于您的情况,

不必重复标记-c。 如果要安装多个软件包,只需执行以下命令即可:

conda install -c pytorch conda-forge anaconda aramislab deformetrica