文章目录

  • anaconda创建新的虚拟环境时出现以下错误
  • 解决办法
  • 碎碎念

anaconda创建新的虚拟环境时出现以下错误

student1@guest-server:~$ conda create -n py36 python=3.6
Collecting package metadata (current_repodata.json): done
Solving environment: done

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

Traceback (most recent call last):File "/opt/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_                                                                                                                                                                                                                                             data.py", line 301, in _make_single_recordrepodata_record = read_repodata_json(extracted_package_dir)File "/opt/anaconda3/lib/python3.7/site-packages/conda/gateways/disk/read.                                                                                                                                                                                                                                             py", line 130, in read_repodata_jsonwith open(join(extracted_package_directory, 'info', 'repodata_record.jso                                                                                                                                                                                                                                             n')) as fi:File "/opt/anaconda3/lib/python3.7/site-packages/conda/common/compat.py",                                                                                                                                                                                                                                              line 178, in openclosefd=closefd)
FileNotFoundError: [Errno 2] No such file or directory: '/opt/anaconda3/pkgs                                                                                                                                                                                                                                             /info/repodata_record.jsonDuring handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/opt/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 “/opt/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 “/opt/anaconda3/lib/python3.7/site-packages/conda/common/compat.py”, line 178, in open
closefd=closefd)
FileNotFoundError: [Errno 2] No such file or directory: ‘/opt/anaconda3/pkgs / /info/index.json’

During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/opt/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", lin  e 1079, in __call__return func(*args, **kwargs)File "/opt/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line   84, in _mainexit_code = do_call(args, p)File "/opt/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.  py", line 82, in do_callreturn getattr(module, func_name)(args, parser)File "/opt/anaconda3/lib/python3.7/site-packages/conda/cli/main_create.py"  , line 37, in executeinstall(args, parser, 'create')File "/opt/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", li  ne 317, in installhandle_txn(unlink_link_transaction, prefix, args, newenv)File "/opt/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", li  ne 333, in handle_txnunlink_link_transaction.print_transaction_summary()File "/opt/anaconda3/lib/python3.7/site-packages/conda/core/link.py", line  917, in print_transaction_summarylegacy_action_groups = self._make_legacy_action_groups()File "/opt/anaconda3/lib/python3.7/site-packages/conda/core/link.py", line  901, in _make_legacy_action_groupsself._pfe.prepare()File "/opt/anaconda3/lib/python3.7/site-packages/conda/common/io.py", line  88, in decoratedreturn f(*args, **kwds)File "/opt/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_  data.py", line 612, in preparefor prec in self.link_precs)File "/opt/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_  data.py", line 612, in <genexpr>for prec in self.link_precs)File "/opt/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_  data.py", line 503, in make_actions_for_record), None)File "/opt/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 "/opt/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_  data.py", line 501, in <genexpr>for pkgs_dir in context.pkgs_dirs)File "/opt/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_  data.py", line 130, in queryreturn (pcrec for pcrec in itervalues(self._package_cache_records) if pc                          rec == param)File "/opt/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_  data.py", line 244, in _package_cache_recordsself.load()File "/opt/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_  data.py", line 96, in loadpackage_cache_record = self._make_single_record(base_name)File "/opt/anaconda3/lib/python3.7/site-packages/conda/core/package_cache_  data.py", line 340, in _make_single_recordextract_tarball(package_tarball_full_path, extracted_package_dir)File "/opt/anaconda3/lib/python3.7/site-packages/conda/gateways/disk/creat  e.py", line 219, in extract_tarballconda_package_handling.api.extract(tarball_full_path, dest_dir=destinati                                                     on_directory)File "/opt/anaconda3/lib/python3.7/site-packages/conda_package_handling/ap  i.py", line 58, in extractSUPPORTED_EXTENSIONS[ext].extract(fn, dest_dir, components=components)File "/opt/anaconda3/lib/python3.7/site-packages/conda_package_handling/co  nda_fmt.py", line 59, in extract_extract_component(fn, file_id, component, dest_dir)File "/opt/anaconda3/lib/python3.7/site-packages/conda_package_handling/co  nda_fmt.py", line 38, in _extract_component.format(component_name, fn))
RuntimeError: didn't find info component in /opt/anaconda3/pkgs/ .conda

$ /opt/anaconda3/bin/conda create -n py36 python=3.6

environment variables:
CIO_TEST=
CONDA_ROOT=/opt/anaconda3
PATH=/home/student1/bin:/home/student1/.local/bin:/opt/matl ab/bin:/opt/anac
onda3/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/loc al/bin:/usr/sbin
:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap /bin
PYTHONPATH=/opt/caffe-master/python
REQUESTS_CA_BUNDLE=
SSL_CERT_FILE=

 active environment : Noneuser config file : /home/student1/.condarc

populated config files : /home/student1/.condarc
conda version : 4.8.3
conda-build version : 3.18.9
python version : 3.7.4.final.0
virtual packages : __cuda=10.2
__glibc=2.27
base environment : /opt/anaconda3 (writable)
channel URLs : https://conda.anaconda.org/conda-forge/linux-64
https://conda.anaconda.org/conda-forge/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 : /opt/anaconda3/pkgs
/home/student1/.conda/pkgs
envs directories : /opt/anaconda3/envs
/home/student1/.conda/envs
platform : linux-64
user-agent : conda/4.8.3 requests/2.23.0 CPython/3.7.4 Linux/4.4.0- 179-generic ubuntu/16.04 glibc/2.27
UID:GID : 1002:1002
netrc file : None
offline mode : False

An unexpected error has occurred. Conda has prepared the above report.
Upload did not complete.

解决办法

1、输入命令行:

conda clean --packages && conda clean --all && conda update --all

2、遇到Proceed(y/n)?

输入y


3、慢慢等,等所有进度条都走完

碎碎念

差点把anaconda卸载了重装,运行升级anaconda的命令也出错,看了提示的错误,一直以为是丢失了repodata_record.json。

参考:https://github.com/conda/conda/issues/6706

anaconda :An unexpected error has occurred. Conda has prepared the above report相关推荐

  1. Anaconda: An unexpected error has occurred. Conda has prepared the above report.

    莫名奇妙出现这个问题: # >>>>>>>>>>>>>>>>>>>>>&g ...

  2. conda create新建环境失败报错:An unexpected error has occurred. Conda has prepared the above report.

    问题描述: 在linux中使用conda create命令新建环境报错如下: (base) [@localhost SPOT-1D-LM]$ conda create -n spot_1d_lm py ...

  3. window10下conda使用报错:An unexpected error has occurred. Conda has prepared the above report.

    在我使用anaconda3创建环境,跑实验时,把镜像三搞两搞,搞出了问题,卡死了 An unexpected error has occurred. Conda has prepared the ab ...

  4. 创造虚拟环境报错An unexpected error has occurred. Conda has prepared the above report.解决方案

    一.创造一个虚拟环境报错**:** An unexpected error has occurred. Conda has prepared the above report.Upload did n ...

  5. An unexpected error has occurred. Conda has prepared the above report. 解决办法

    使用 miniconda 创建虚拟环境的时候,报错: An unexpected error has occurred. Conda has prepared the above report. 网上 ...

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

    欢迎加入大家庭: 企鹅交流群号:722058911 conda创建虚拟环境的时候报错: An unexpected error has occurred. Conda has prepared the ...

  7. Conda安装时报错“An unexpected error has occurred. Conda has prepared the above report.”

    小技巧 第一章 Linux中安装Radian Conda安装时报错"An unexpected error has occurred. Conda has prepared the abov ...

  8. An unexpected error has occurred. Conda has prepared the above report. Upload did not complete.

    [已解决] 使用conda报错: An unexpected error has occurred. Conda has prepared the above report. Upload did n ...

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

    一.报错 二.解决 其实就是因为挂了vpn,把电脑上有的vpn关了错误就会消失

最新文章

  1. sql server两种分页方法
  2. java 正则表达式 demo_JAVA正则表达式语法
  3. 服务器光信号闪红灯是什么意思,路由器光信号闪红灯是什么意思
  4. Deepin、Debian、Ubuntu恢复误删除的/var/lib/dpkg
  5. dorado7ajax,Dorado7
  6. 转:Google论文之三----MapReduce
  7. 华为p50 pro 鸿蒙,华为P50Pro确认!1英寸大底相机+首发鸿蒙:这才是华为最强实力...
  8. 魅族16s最新渲染图曝光:后置双摄无刘海 或4月底发布
  9. oracle建表6大约束,oracle 建表 约束 constraint
  10. java html写入到word文档_java 使用jacob将html页面写入word
  11. 异常:Software caused connection abort: socket write error
  12. java中操作字符串的函数_java 常用字符串操作
  13. 天正自定义填充图案怎么添加_自定义AutoCAD填充图案教程 - CAD自学网
  14. directx修复工具win7_win7蓝屏该怎么解决图文教程
  15. 分布式电商项目——10.商品搜索 springboot 集成ES+kibana+logstash+Ik分词器+Ik拼音分词器
  16. 计算机操作系统的自举过程
  17. 分享程序员面试的7个技巧
  18. 小白快速变大神,零基础菜鸟应该怎么学编程
  19. 06.论Redis持久化的几种方式
  20. 教师资格证报名显示内核服务器错误,中小学教师资格证报考支付卡状态失效是怎么回事?..._教师资格考试_帮考网...

热门文章

  1. Kubernetes 开源负载均衡器 OpenELB 使用指南
  2. 阳光城:规模快车道上的速度与理性
  3. 如何在windows下让apache支持asp,通过iasp
  4. 31_NavLink组件包装优化
  5. 电脑怎么截取视频做gif?这个gif制作平台超好用
  6. 520教你用Jsoup爬哲理励志鸡汤文
  7. Solr数据迁移ES
  8. 题解 洛谷P7227 【[COCI2015-2016#3] ESEJ】
  9. Virtual Box 安装教程/安装步骤
  10. 图书管理系统java项目jsp web项