R-install_miniconda()卸载 | conda命令行报错及解决方法

在这里插入图片描述

运行以下代码,突然报错:

C:\Users\hp>conda info-e

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

Traceback (most recent call last):
  File "C:\Users\hp\AppData\Local\r-miniconda\Lib\site-packages\conda\exception_handler.py", line 17, in __call__
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hp\AppData\Local\r-miniconda\Lib\site-packages\conda\cli\main.py", line 61, in main_subshell
    context.__init__(argparse_args=pre_args)
  File "C:\Users\hp\AppData\Local\r-miniconda\Lib\site-packages\conda\base\context.py", line 456, in __init__
    self._set_search_path(
  File "C:\Users\hp\AppData\Local\r-miniconda\Lib\site-packages\conda\common\configuration.py", line 1428, in _set_search_path
    self._set_raw_data(dict(self._load_search_path(self._search_path)))
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hp\AppData\Local\r-miniconda\Lib\site-packages\conda\common\configuration.py", line 1417, in _load_search_path
    yield path, YamlRawParameter.make_raw_parameters_from_file(path)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hp\AppData\Local\r-miniconda\Lib\site-packages\conda\common\configuration.py", line 401, in make_raw_parameters_from_file
    yaml_obj = yaml_round_trip_load(fh)
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hp\AppData\Local\r-miniconda\Lib\site-packages\conda\common\serialize.py", line 43, in yaml_round_trip_load
    return _yaml_round_trip().load(string)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hp\AppData\Local\r-miniconda\Lib\site-packages\ruamel\yaml\main.py", line 432, in load
    constructor, parser = self.get_constructor_parser(stream)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hp\AppData\Local\r-miniconda\Lib\site-packages\ruamel\yaml\main.py", line 483, in get_constructor_parser
    self.reader.stream = stream
    ^^^^^^^^^^^^^^^^^^
  File "C:\Users\hp\AppData\Local\r-miniconda\Lib\site-packages\ruamel\yaml\reader.py", line 133, in stream
    self.determine_encoding()
  File "C:\Users\hp\AppData\Local\r-miniconda\Lib\site-packages\ruamel\yaml\reader.py", line 193, in determine_encoding
    self.update_raw()
  File "C:\Users\hp\AppData\Local\r-miniconda\Lib\site-packages\ruamel\yaml\reader.py", line 288, in update_raw
    data = self.stream.read(size)
           ^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'gbk' codec can't decode byte 0xab in position 612: illegal multibyte sequence
`$ C:\Users\hp\AppData\Local\r-miniconda\Scripts\conda-script.py info-e`


An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.

Example: conda --no-plugins install <package>

Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
the command line to run the command without plugins enabled.

Example: CONDA_NO_PLUGINS=true conda install <package>

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]:

突然出现以上报错后,卸载miniconda:

  1. 删除miniconda安装目录下的envspkgs文件夹;
  2. 运行miniconda安装目录下的Miniconda unistall.exe应用程序,来卸载软件包。

卸载后在R中重新安装,出现以下报错:

install_miniconda() # 安装miniconda环境

  • Installing Miniconda – please wait a moment …
  • Downloading “https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe” …
    trying URL ‘https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe’
    Warning: URL ‘https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe’: status was 'Couldn’t resolve host name’Error in download.file(url, destfile = installer, mode = “wb”) :
    cannot open URL ‘https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe’

解决方法:关掉代理之后,再次运行该代码。

> install_miniconda() # 安装miniconda环境
* Installing Miniconda -- please wait a moment ...
* Downloading "https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe" ...
trying URL 'https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe'
Content type 'application/octet-stream' length 77445248 bytes (73.9 MB)
downloaded 73.9 MB

+ "C:/Users/hp/AppData/Local/r-miniconda/condabin/conda.bat" update --yes --name base conda
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done

## Package Plan ##

  environment location: C:\Users\hp\AppData\Local\R-MINI~1

  added / updated specs:
    - conda


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    archspec-0.2.1             |     pyhd3eb1b0_0          39 KB
    brotli-python-1.0.9        |  py311hd77b12b_7         310 KB
    conda-23.10.0              |  py311haa95532_0         1.2 MB
    conda-libmamba-solver-23.11.0|  py311haa95532_0         103 KB
    libmamba-1.5.3             |       hcd6fe79_0         3.8 MB
    libmambapy-1.5.3           |  py311h77c03ed_0         323 KB
    openssl-3.0.12             |       h2bbff1b_0         7.4 MB
    urllib3-1.26.18            |  py311haa95532_0         252 KB
    yaml-cpp-0.8.0             |       hd77b12b_0         2.0 MB
    ------------------------------------------------------------
                                           Total:        15.5 MB

The following NEW packages will be INSTALLED:

  archspec           pkgs/main/noarch::archspec-0.2.1-pyhd3eb1b0_0 
  brotli-python      pkgs/main/win-64::brotli-python-1.0.9-py311hd77b12b_7 

The following packages will be REMOVED:

  brotlipy-0.7.0-py311h2bbff1b_1002

The following packages will be UPDATED:

  conda                              23.9.0-py311haa95532_0 --> 23.10.0-py311haa95532_0 
  conda-libmamba-so~                 23.9.1-py311haa95532_0 --> 23.11.0-py311haa95532_0 
  libmamba                                 1.5.1-hcd6fe79_0 --> 1.5.3-hcd6fe79_0 
  libmambapy                          1.5.1-py311h77c03ed_0 --> 1.5.3-py311h77c03ed_0 
  openssl                                 3.0.11-h2bbff1b_2 --> 3.0.12-h2bbff1b_0 
  urllib3                           1.26.16-py311haa95532_0 --> 1.26.18-py311haa95532_0 
  yaml-cpp                                 0.7.0-hd77b12b_1 --> 0.8.0-hd77b12b_0 



Downloading and Extracting Packages: ...working... done
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
+ "C:/Users/hp/AppData/Local/r-miniconda/condabin/conda.bat" "create" "--yes" "--name" "r-reticulate" "python=3.9" "numpy" "--quiet" "-c" "conda-forge"
Channels:
 - conda-forge
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done

## Package Plan ##

  environment location: C:\Users\hp\AppData\Local\R-MINI~1\envs\r-reticulate

  added / updated specs:
    - numpy
    - python=3.9


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    bzip2-1.0.8                |       hcfcfb64_5         122 KB  conda-forge
    ca-certificates-2023.7.22  |       h56e8100_0         146 KB  conda-forge
    intel-openmp-2023.2.0      |   h57928b3_50497         2.4 MB  conda-forge
    libblas-3.9.0              |     19_win64_mkl         4.8 MB  conda-forge
    libcblas-3.9.0             |     19_win64_mkl         4.8 MB  conda-forge
    libffi-3.4.2               |       h8ffe710_5          41 KB  conda-forge
    libhwloc-2.9.3             |default_haede6df_1009         2.5 MB  conda-forge
    libiconv-1.17              |       h8ffe710_0         698 KB  conda-forge
    liblapack-3.9.0            |     19_win64_mkl         4.8 MB  conda-forge
    libsqlite-3.44.0           |       hcfcfb64_0         833 KB  conda-forge
    libxml2-2.11.5             |       hc3477c8_1         1.5 MB  conda-forge
    libzlib-1.2.13             |       hcfcfb64_5          54 KB  conda-forge
    mkl-2023.2.0               |   h6a75c08_50496       138.0 MB  conda-forge
    numpy-1.26.0               |   py39hddb5d58_0         5.7 MB  conda-forge
    openssl-3.1.4              |       hcfcfb64_0         7.1 MB  conda-forge
    pip-23.3.1                 |     pyhd8ed1ab_0         1.3 MB  conda-forge
    pthreads-win32-2.9.1       |       hfa6e2cd_3         141 KB  conda-forge
    python-3.9.18              |h4de0772_0_cpython        16.1 MB  conda-forge
    python_abi-3.9             |           4_cp39           7 KB  conda-forge
    setuptools-68.2.2          |     pyhd8ed1ab_0         454 KB  conda-forge
    tbb-2021.10.0              |       h91493d7_2         153 KB  conda-forge
    tk-8.6.13                  |       h5226925_1         3.3 MB  conda-forge
    tzdata-2023c               |       h71feb2d_0         115 KB  conda-forge
    ucrt-10.0.22621.0          |       h57928b3_0         1.2 MB  conda-forge
    vc-14.3                    |      h64f974e_17          17 KB  conda-forge
    vc14_runtime-14.36.32532   |      hdcecf7f_17         722 KB  conda-forge
    vs2015_runtime-14.36.32532 |      h05e6639_17          17 KB  conda-forge
    wheel-0.41.3               |     pyhd8ed1ab_0          57 KB  conda-forge
    xz-5.2.6                   |       h8d14728_0         213 KB  conda-forge
    ------------------------------------------------------------
                                           Total:       197.1 MB

The following NEW packages will be INSTALLED:

  bzip2              conda-forge/win-64::bzip2-1.0.8-hcfcfb64_5 
  ca-certificates    conda-forge/win-64::ca-certificates-2023.7.22-h56e8100_0 
  intel-openmp       conda-forge/win-64::intel-openmp-2023.2.0-h57928b3_50497 
  libblas            conda-forge/win-64::libblas-3.9.0-19_win64_mkl 
  libcblas           conda-forge/win-64::libcblas-3.9.0-19_win64_mkl 
  libffi             conda-forge/win-64::libffi-3.4.2-h8ffe710_5 
  libhwloc           conda-forge/win-64::libhwloc-2.9.3-default_haede6df_1009 
  libiconv           conda-forge/win-64::libiconv-1.17-h8ffe710_0 
  liblapack          conda-forge/win-64::liblapack-3.9.0-19_win64_mkl 
  libsqlite          conda-forge/win-64::libsqlite-3.44.0-hcfcfb64_0 
  libxml2            conda-forge/win-64::libxml2-2.11.5-hc3477c8_1 
  libzlib            conda-forge/win-64::libzlib-1.2.13-hcfcfb64_5 
  mkl                conda-forge/win-64::mkl-2023.2.0-h6a75c08_50496 
  numpy              conda-forge/win-64::numpy-1.26.0-py39hddb5d58_0 
  openssl            conda-forge/win-64::openssl-3.1.4-hcfcfb64_0 
  pip                conda-forge/noarch::pip-23.3.1-pyhd8ed1ab_0 
  pthreads-win32     conda-forge/win-64::pthreads-win32-2.9.1-hfa6e2cd_3 
  python             conda-forge/win-64::python-3.9.18-h4de0772_0_cpython 
  python_abi         conda-forge/win-64::python_abi-3.9-4_cp39 
  setuptools         conda-forge/noarch::setuptools-68.2.2-pyhd8ed1ab_0 
  tbb                conda-forge/win-64::tbb-2021.10.0-h91493d7_2 
  tk                 conda-forge/win-64::tk-8.6.13-h5226925_1 
  tzdata             conda-forge/noarch::tzdata-2023c-h71feb2d_0 
  ucrt               conda-forge/win-64::ucrt-10.0.22621.0-h57928b3_0 
  vc                 conda-forge/win-64::vc-14.3-h64f974e_17 
  vc14_runtime       conda-forge/win-64::vc14_runtime-14.36.32532-hdcecf7f_17 
  vs2015_runtime     conda-forge/win-64::vs2015_runtime-14.36.32532-h05e6639_17 
  wheel              conda-forge/noarch::wheel-0.41.3-pyhd8ed1ab_0 
  xz                 conda-forge/win-64::xz-5.2.6-h8d14728_0 


Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
* Miniconda has been successfully installed at "C:/Users/hp/AppData/Local/r-miniconda".
[1] "C:/Users/hp/AppData/Local/r-miniconda"

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/125763.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

开发一条公链多少钱

随着区块链技术的普及和发展&#xff0c;越来越多的企业和个人开始关注公链的开发和建设。那么&#xff0c;开发一条公链到底需要多少钱呢&#xff1f; 首先&#xff0c;我们需要了解公链开发的基本流程和成本构成。一般来说&#xff0c;开发一条公链需要考虑以下几个方面&…

数字政府!3DCAT实时云渲染助推上海湾区数字孪生平台

数字孪生&#xff0c;是一种利用物理模型、传感器数据、运行历史等信息&#xff0c;在虚拟空间中构建实体对象或系统的精确映射&#xff0c;从而实现对其全生命周期的仿真、优化和管理的技术。数字孪生可以应用于各个领域&#xff0c;如工业制造、智慧城市、医疗健康、教育培训…

AVD联网

AVD联网&#xff1a; 解决Android Studio模拟器无法联网_android studio模拟器没有网络-CSDN博客 挺好的&#xff0c;就是访问网站的时候只能用ip&#xff0c;而不能用域名。 AVD设置代理&#xff1a; android studio踩坑记 AVD模拟器代理设置_android studio avd 配置代理-…

《C++ Primer》第8章 IO库

参考资料&#xff1a; 《C Primer》第5版《C Primer 习题集》第5版 8.1 IO类&#xff08;P278&#xff09; 我们目前使用过的 IO 对象&#xff08;cin 、cout&#xff09;都是关联到控制台窗口、操纵 char 数据的。有时&#xff0c;我们需要对命名文件或者 string IO 操作。…

与set和map相关的OJ题练习

一、两个数组的交集 题目链接&#xff1a; 349. 两个数组的交集 - 力扣&#xff08;LeetCode&#xff09; 题目描述&#xff1a; 给两个数组&#xff0c;求在数组里面共同出现的部分&#xff0c;就是求两个数组的交集&#xff0c;返回顺序不做要求 解题思路&#xff1a; …

Centos7安装配置中文输入法

Centos7安装配置中文输入法 在安装CentOS时&#xff0c;我们为了方便使用&#xff0c;语言选择了中文&#xff0c;但是我们发现&#xff0c;在Linux命令行或者是浏览器中输入时&#xff0c;我们只能输入英文&#xff0c;无法输入汉字。 来&#xff0c;跟随脚步&#xff0c;设…

第14章,lambda表达式与流处理例题

package 例题;import java.util.List; import java.util.stream.Collectors; import java.util. stream.Stream;public class 例题19 { public static void main(String[] args){List<例题14> list 例题14.get例题14List();//获取公共类的测试数据Stream<例题14>…

GZ038 物联网应用开发赛题第2套

2023年全国职业院校技能大赛 高职组 物联网应用开发 任 务 书 (第2套卷) 工位号:______________ 第一部分 竞赛须知 一、竞赛要求 1、正确使用工具,操作安全规范; 2、竞赛过程中如有异议,可向现场考评人员反映,不得扰乱赛场秩序; 3、遵守赛场纪律,尊重考评人员,…

Flink -- 事件时间 Watermark

1、事件时间&#xff1a; 指的是数据产生的时间或是说是数据发生的时间。 在Flink中有三种时间分别是&#xff1a; Event Time&#xff1a;事件时间&#xff0c;数据产生的时间&#xff0c;可以反应数据真实发生的时间 Infestion Time&#xff1a;事件接收时间 Processing Tim…

AIGC:使用生成对抗网络GAN实现MINST手写数字图像生成

1 生成对抗网络 生成对抗网络&#xff08;Generative Adversarial Networks, GAN&#xff09;是一种非常经典的生成式模型&#xff0c;它受到双人零和博弈的启发&#xff0c;让两个神经网络在相互博弈中进行学习&#xff0c;开创了生成式模型的新范式。从 2017 年以后&#x…

【MATLAB源码-第69期】基于matlab的LDPC码,turbo码,卷积码误码率对比,码率均为1/3,BPSK调制。

操作环境&#xff1a; MATLAB 2022a 1、算法描述 本文章介绍了卷积码、Turbo码和LDPC码。以相同的码率仿真这三种编码&#xff0c;并对比其误码率性能 信源输出的数据符号&#xff08;二进制&#xff09;是相互独立和等概率的&#xff1b; 信道是加性白高斯噪声信道&#…

王道考研--》顺序表课后习题C语言代码实现(冲刺)

考研是许多计算机科学专业学生追求高学历、寻求更好就业前景的途径。在考研过程中&#xff0c;数据结构是一个非常重要的科目&#xff0c;而代码实现题更是其中的难点之一。在这篇文章中&#xff0c;我们将探讨如何通过实现数据结构代码问题来提升考研成绩。无论您是否有编程经…

Excel中功能区的存放位置很灵活,可以根据需要隐藏或显示

在这个简短的教程中,你将找到5种快速简单的方法来恢复Excel功能区,以防丢失,并学习如何隐藏功能区,为工作表腾出更多空间。 功能区是Excel中所有操作的中心点,也是大多数可用功能和命令所在的区域。你觉得功能区占用了你太多的屏幕空间吗?没问题,只需单击鼠标,它就被隐…

Apache APISIX Dashboard 未经认证访问导致 RCE(CVE-2021-45232)漏洞复现

漏洞描述 Apache APISIX 是一个动态、实时、高性能的 API 网关&#xff0c;而 Apache APISIX Dashboard 是一个简单易用的前端界面&#xff0c;用于管理 Apache APISIX。 在 2.10.1 之前的 Apache APISIX Dashboard 中&#xff0c;Manager API 使用了两个框架&#xff0c;并在…

本地生活餐饮视频怎么拍摄能有更多流量?如何批量生产呢?

本地生活近几年特别的火&#xff0c;所以到现在各类内容雷同性也比较高&#xff0c;视频缺少新的创意和玩法&#xff0c;像餐饮店的视频&#xff0c;大部分都是拍顾客进门、拍餐饮店座无虚席的实景……作为用户&#xff0c;其实早就已经看腻了。 今天推荐本地生活餐饮店商家拍…

11.9存储器实验总结(单ram,双ram,FIFO)

实验设计 单端口RAM实现 双端口RAM实现 FIFO实现 文件结构为

Linux nohup后台启动/ 后台启动命令中nohup 、、重定向的使用

文章目录 一、前言二、nohup&#xff08;不挂断&#xff09;简介三、nohup使用3.1、nohup启动3.2、nohup与&&#xff0c;后台运行3.3、nohup与>&#xff0c;日志重定向3.4、nohup后台启动-综合使用(推荐)2>&1 3.5、nohup后台启动(不生成日志) 四、查看进程五、知…

IDEA项目下不显示target目录或者target目录不完整没有新添加的资源,idea隐藏target目录

文章目录 一、前言二、idea隐藏target目录2.1、idea隐藏target目录2.2、git提交时隐藏target目录 三、idea下显示target目录3.1、解决idea下不显示target目录问题3.2、target显示目录不完整 一、前言 在idea-2020.1.4版本下讲解idea怎么显示或隐藏target目录。 需要知道:如果…

数据采集代码示例

首先&#xff0c;你需要安装一个 Lua 的爬虫库&#xff0c;例如 Luanode 或者 Lush&#xff1a; lua local ltn12 require("ltn12") local http require("") local response http.request{ host "", port , path "/", …

SSM图书管理系统开发mysql数据库web结构java编程计算机网页源码eclipse项目

一、源码特点 SSM 图书管理系统是一套完善的信息系统&#xff0c;结合springboot框架和bootstrap完成本系统&#xff0c;对理解JSP java编程开发语言有帮助系统采用SSM框架&#xff08;MVC模式开发&#xff09;&#xff0c;系统具有完整的源代码和 数据库&#xff0c;系统主要…