conda create 报错,解决!

错误报告如下:

orange@Orange:~$ conda create -n tensorflow python=3.7
Solving environment: failed

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

    Traceback (most recent call last):
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 227, in _load
        mod_etag_headers.get('_mod'))
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 574, 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/orange/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 819, in __call__
        return func(*args, **kwargs)
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 78, in _main
        exit_code = do_call(args, p)
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 77, in do_call
        exit_code = getattr(module, func_name)(args, parser)
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/cli/main_create.py", line 11, in execute
        install(args, parser, 'create')
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 235, in install
        force_reinstall=context.force,
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 518, in solve_for_transaction
        force_remove, force_reinstall)
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 451, in solve_for_diff
        final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 180, in solve_final_state
        index, r = self._prepare(prepared_specs)
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 592, in _prepare
        self.subdirs, prepared_specs)
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/core/index.py", line 215, in get_reduced_index
        new_records = query_all(spec)
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/core/index.py", line 184, in query_all
        return tuple(concat(future.result() for future in as_completed(futures)))
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 95, in query
        self.load()
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 149, in load
        _internal_state = self._load()
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 233, in _load
        mod_etag_headers.get('_mod'))
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 280, in _read_local_repdata
        _internal_state = self._process_raw_repodata_str(raw_repodata_str)
      File "/home/orange/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 317, in _process_raw_repodata_str
        json_obj = json.loads(raw_repodata_str or '{}')
      File "/home/orange/anaconda3/lib/python3.7/json/__init__.py", line 348, in loads
        return _default_decoder.decode(s)
      File "/home/orange/anaconda3/lib/python3.7/json/decoder.py", line 337, in decode
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      File "/home/orange/anaconda3/lib/python3.7/json/decoder.py", line 353, in raw_decode
        obj, end = self.scan_once(s, idx)
    json.decoder.JSONDecodeError: Unterminated string starting at: line 571401 column 5 (char 17186623)

`$ /home/orange/anaconda3/bin/conda create -n tensorflow python=3.7`

  environment variables:
                 CIO_TEST=
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=/home/orange/anaconda3/bin/conda
             CONDA_PREFIX=/home/orange/anaconda3
    CONDA_PROMPT_MODIFIER=
         CONDA_PYTHON_EXE=/home/orange/anaconda3/bin/python
               CONDA_ROOT=/home/orange/anaconda3
              CONDA_SHLVL=1
            DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
          LD_LIBRARY_PATH=/home/orange/anaconda3/lib:/media/orange/D/anaconda2/bin:
             LIBXDNN_PATH=/media/orange/D/anaconda2/bin:
           MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
                     PATH=/home/orange/anaconda3/bin:/opt/Xilinx/SDK/2018.3/bin:/opt/Xilinx/SDK/
                          2018.3/gnu/microblaze/lin/bin:/opt/Xilinx/SDK/2018.3/gnu/arm/lin/bin:/
                          opt/Xilinx/SDK/2018.3/gnu/microblaze/linux_toolchain/lin64_le/bin:/opt
                          /Xilinx/SDK/2018.3/gnu/aarch32/lin/gcc-arm-linux-
                          gnueabi/bin:/opt/Xilinx/SDK/2018.3/gnu/aarch32/lin/gcc-arm-none-eabi/b
                          in:/opt/Xilinx/SDK/2018.3/gnu/aarch64/lin/aarch64-linux/bin:/opt/Xilin
                          x/SDK/2018.3/gnu/aarch64/lin/aarch64-none/bin:/opt/Xilinx/SDK/2018.3/g
                          nu/armr5/lin/gcc-arm-none-eabi/bin:/opt/Xilinx/SDK/2018.3/tps/lnx64/cm
                          ake-3.3.2/bin:/opt/Xilinx/DocNav:/opt/Xilinx/SDx/2018.3/bin:/opt/Xilin
                          x/Vivado/2018.3/bin:/media/orange/D/anaconda2/condabin:/media/orange/D
                          /anaconda2/bin:/usr/local/cuda/bin:/home/orange/bin:/home/orange/.loca
                          l/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/us
                          r/games:/usr/local/games:/snap/bin
               PYTHONPATH=/media/orange/D/HWP/MobileLSTM/mobilelstm/slim/:
       REQUESTS_CA_BUNDLE=
            SSL_CERT_FILE=
            XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
         XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0

     active environment : base
    active env location : /home/orange/anaconda3
            shell level : 1
       user config file : /home/orange/.condarc
 populated config files : /home/orange/.condarc
          conda version : 4.5.11
    conda-build version : 3.15.1
         python version : 3.7.0.final.0
       base environment : /home/orange/anaconda3  (writable)
           channel URLs : 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/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/free/linux-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/linux-64
                          https://repo.anaconda.com/pkgs/pro/noarch
          package cache : /home/orange/anaconda3/pkgs
                          /home/orange/.conda/pkgs
       envs directories : /home/orange/anaconda3/envs
                          /home/orange/.conda/envs
               platform : linux-64
             user-agent : conda/4.5.11 requests/2.19.1 CPython/3.7.0 Linux/4.15.0-29-generic ubuntu/16.04 glibc/2.23
                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]: n

No report sent. To permanently opt-out, use

    $ conda config --set report_errors false

解决方法:

恢复默认源:

conda config --remove-key channels

 

你可能感兴趣的:(anaconda)