json.decoder.JSONDecodeError: Unterminated string starting at: line 159642 column 14 (char 5324622)

conda install 问题

(py36_for_pytorch020) abc@robot:~/Desktop/CSPN-master/cspn_pytorch$ conda install samtoolsSolving environment: failed

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

    Traceback (most recent call last):
      File "/home/abc/anaconda3/lib/python3.6/site-packages/conda/core/subdir_data.py", line 216, in _load
        mod_etag_headers.get('_mod'))
      File "/home/abc/anaconda3/lib/python3.6/site-packages/conda/core/subdir_data.py", line 553, 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/abc/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 819, in __call__
        return func(*args, **kwargs)
      File "/home/abc/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 78, in _main
        exit_code = do_call(args, p)
      File "/home/abc/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/abc/anaconda3/lib/python3.6/site-packages/conda/cli/main_install.py", line 11, in execute
        install(args, parser, 'install')
      File "/home/abc/anaconda3/lib/python3.6/site-packages/conda/cli/install.py", line 235, in install
        force_reinstall=context.force,
      File "/home/abc/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 505, in solve_for_transaction
        force_remove, force_reinstall)
      File "/home/abc/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/abc/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 179, in solve_final_state
        index, r = self._prepare(prepared_specs)
      File "/home/abc/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 560, in _prepare
        self.subdirs, prepared_specs)
      File "/home/abc/anaconda3/lib/python3.6/site-packages/conda/core/index.py", line 215, in get_reduced_index
        new_records = query_all(spec)
      File "/home/abc/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/abc/anaconda3/lib/python3.6/site-packages/conda/core/subdir_data.py", line 94, in query
        self.load()
      File "/home/abc/anaconda3/lib/python3.6/site-packages/conda/core/subdir_data.py", line 148, in load
        _internal_state = self._load()
      File "/home/abc/anaconda3/lib/python3.6/site-packages/conda/core/subdir_data.py", line 222, in _load
        mod_etag_headers.get('_mod'))
      File "/home/abc/anaconda3/lib/python3.6/site-packages/conda/core/subdir_data.py", line 269, in _read_local_repdata
        _internal_state = self._process_raw_repodata_str(raw_repodata_str)
      File "/home/abc/anaconda3/lib/python3.6/site-packages/conda/core/subdir_data.py", line 306, in _process_raw_repodata_str
        json_obj = json.loads(raw_repodata_str or '{}')
      File "/home/abc/anaconda3/lib/python3.6/json/__init__.py", line 354, in loads
        return _default_decoder.decode(s)
      File "/home/abc/anaconda3/lib/python3.6/json/decoder.py", line 339, in decode
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      File "/home/abc/anaconda3/lib/python3.6/json/decoder.py", line 355, in raw_decode
        obj, end = self.scan_once(s, idx)
    json.decoder.JSONDecodeError: Unterminated string starting at: line 159642 column 14 (char 5324622)

`$ /home/abc/anaconda3/bin/conda install samtools`

  environment variables:
                 CIO_TEST=
        CMAKE_PREFIX_PATH=/home/abc/catkin_ws/devel:/opt/ros/kinetic
          COMPIZ_BIN_PATH=/usr/bin/
        CONDA_DEFAULT_ENV=py36_for_pytorch020
                CONDA_EXE=/home/abc/anaconda3/bin/conda
             CONDA_PREFIX=/home/abc/anaconda3/envs/py36_for_pytorch020
    CONDA_PROMPT_MODIFIER=(py36_for_pytorch020)
         CONDA_PYTHON_EXE=/home/abc/anaconda3/bin/python
               CONDA_ROOT=/home/abc/anaconda3
              CONDA_SHLVL=1
            DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
          LD_LIBRARY_PATH=/home/abc/catkin_ws/devel/lib:/opt/ros/kinetic/lib:/opt/ros/kinetic/li
                          b/x86_64-linux-gnu
           MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
                     PATH=/home/abc/anaconda3/envs/py36_for_pytorch020/bin:/home/abc/anaconda3/b
                          in:/opt/ros/kinetic/bin:/home/abc/bin:/home/abc/.local/bin:/usr/local/
                          sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/loca
                          l/games:/snap/bin
          PKG_CONFIG_PATH=/home/abc/catkin_ws/devel/lib/pkgconfig:/opt/ros/kinetic/lib/pkgconfig
                          :/opt/ros/kinetic/lib/x86_64-linux-gnu/pkgconfig
               PYTHONPATH=/home/abc/catkin_ws/devel/lib/python2.7/dist-
                          packages:/opt/ros/kinetic/lib/python2.7/dist-packages
       REQUESTS_CA_BUNDLE=
         ROS_PACKAGE_PATH=/home/abc/catkin_ws/src:/opt/ros/kinetic/share
            SSL_CERT_FILE=
            XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
         XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0

     active environment : py36_for_pytorch020
    active env location : /home/abc/anaconda3/envs/py36_for_pytorch020
            shell level : 1
       user config file : /home/abc/.condarc
 populated config files : /home/abc/.condarc
          conda version : 4.5.4
    conda-build version : 3.10.5
         python version : 3.6.5.final.0
       base environment : /home/abc/anaconda3  (writable)
           channel URLs : 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/cloud/bioconda/linux-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/noarch
          package cache : /home/abc/anaconda3/pkgs
                          /home/abc/.conda/pkgs
       envs directories : /home/abc/anaconda3/envs
                          /home/abc/.conda/envs
               platform : linux-64
             user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Linux/4.15.0-72-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]:
No report sent. To permanently opt-out, use

    $ conda config --set report_errors false

 

 

解决办法:把源还原到原来的源,然后再重新添加清华镜像或者中科大镜像

你可能感兴趣的:(python,image,conda)