当前位置: 首页 > 工具软件 > The-Forge > 使用案例 >

求助:conda install -c conda-forge jupyter_contrib_nbextensions报错 linux怎么解决?

洪永长
2023-12-01

conda install -c conda-forge jupyter_contrib_nbextensions
Collecting package metadata (current_repodata.json): done
Solving environment: done

> WARNING: A newer version of conda exists. <
current version: 4.8.2
latest version: 4.8.3

Please update conda by running

$ conda update -n base -c defaults conda

>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

Traceback (most recent call last):
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 301, in _make_single_record
    repodata_record = read_repodata_json(extracted_package_dir)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/gateways/disk/read.py", line 130, in read_repodata_json
    with open(join(extracted_package_directory, 'info', 'repodata_record.json')) as fi:
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/common/compat.py", line 178, in open
    closefd=closefd)
FileNotFoundError: [Errno 2] No such file or directory: '/home/yjz/anaconda3/pkgs/conda-4.8.3-py37_0/info/repodata_record.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 318, in _make_single_record
    raw_json_record = read_index_json(extracted_package_dir)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/gateways/disk/read.py", line 116, in read_index_json
    with open(join(extracted_package_directory, 'info', 'index.json')) as fi:
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/common/compat.py", line 178, in open
    closefd=closefd)
FileNotFoundError: [Errno 2] No such file or directory: '/home/yjz/anaconda3/pkgs/conda-4.8.3-py37_0/info/index.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1079, in __call__
    return func(*args, **kwargs)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 82, in do_call
    return getattr(module, func_name)(args, parser)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/cli/main_install.py", line 20, in execute
    install(args, parser, 'install')
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 317, in install
    handle_txn(unlink_link_transaction, prefix, args, newenv)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 333, in handle_txn
    unlink_link_transaction.print_transaction_summary()
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/core/link.py", line 917, in print_transaction_summary
    legacy_action_groups = self._make_legacy_action_groups()
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/core/link.py", line 901, in _make_legacy_action_groups
    self._pfe.prepare()
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/common/io.py", line 88, in decorated
    return f(*args, **kwds)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 612, in prepare
    for prec in self.link_precs)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 612, in <genexpr>
    for prec in self.link_precs)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 503, in make_actions_for_record
    ), None)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 500, in <genexpr>
    pcrec for pcrec in concat(PackageCacheData(pkgs_dir).query(pref_or_spec)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 501, in <genexpr>
    for pkgs_dir in context.pkgs_dirs)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 130, in query
    return (pcrec for pcrec in itervalues(self._package_cache_records) if pcrec == param)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 244, in _package_cache_records
    self.load()
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 96, in load
    package_cache_record = self._make_single_record(base_name)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_data.py", line 340, in _make_single_record
    extract_tarball(package_tarball_full_path, extracted_package_dir)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda/gateways/disk/create.py", line 219, in extract_tarball
    conda_package_handling.api.extract(tarball_full_path, dest_dir=destination_directory)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda_package_handling/api.py", line 58, in extract
    SUPPORTED_EXTENSIONS[ext].extract(fn, dest_dir, components=components)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda_package_handling/conda_fmt.py", line 59, in extract
    _extract_component(fn, file_id, component, dest_dir)
  File "/home/yjz/anaconda3/lib/python3.7/site-packages/conda_package_handling/conda_fmt.py", line 38, in _extract_component
    .format(component_name, fn))
RuntimeError: didn't find info component in /home/yjz/anaconda3/pkgs/conda-4.8.3-py37_0.conda

$ /home/yjz/anaconda3/bin/conda install -c conda-forge jupyter_contrib_nbextensions

environment variables:
CIO_TEST=
CLASSPATH=.:${JAVA_HOME}/lib:/opt/jvm/jdk1.8.0_231/jre/lib
CONDA_DEFAULT_ENV=base
CONDA_EXE=/home/yjz/anaconda3/bin/conda
CONDA_PREFIX=/home/yjz/anaconda3
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHON_EXE=/home/yjz/anaconda3/bin/python
CONDA_ROOT=/home/yjz/anaconda3
CONDA_SHLVL=1
PATH=/home/yjz/anaconda3/bin:/home/yjz/anaconda3/bin:/home/yjz/anaconda3/co
ndabin:/home/yjz/snap/sdk-tools-
linux-4333796/tools:/home/yjz/snap/sdk-tools-linux-4333796/tools/bin:/
usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
:/usr/local/games:/snap/bin:/usr/lib/jvm/java-13-oracle/bin:/usr/lib/j
vm/java-13-oracle/db/bin:/opt/anaconda3/bin
REQUESTS_CA_BUNDLE=
SSL_CERT_FILE=
WINDOWPATH=2

 active environment : base
active env location : /home/yjz/anaconda3
        shell level : 1
   user config file : /home/yjz/.condarc

populated config files : /home/yjz/.condarc
conda version : 4.8.2
conda-build version : 3.18.11
python version : 3.7.6.final.0
virtual packages : __cuda=10.1
__glibc=2.31
base environment : /home/yjz/anaconda3 (writable)
channel URLs : https://conda.anaconda.org/conda-forge/linux-64
https://conda.anaconda.org/conda-forge/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/yjz/anaconda3/pkgs
/home/yjz/.conda/pkgs
envs directories : /home/yjz/anaconda3/envs
/home/yjz/.conda/envs
platform : linux-64
user-agent : conda/4.8.2 requests/2.22.0 CPython/3.7.6 Linux/5.3.0-51-generic ubuntu/19.10 glibc/2.31
UID:GID : 1000:1000
netrc file : None
offline mode : False

An unexpected error has occurred. Conda has prepared the above report.

 类似资料: