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

news2024/11/24 20:25:53

在这里插入图片描述

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

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"

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

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

AI:74-基于深度学习的宠物品种识别

🚀 本文选自专栏:AI领域专栏 从基础到实践,深入了解算法、案例和最新趋势。无论你是初学者还是经验丰富的数据科学家,通过案例和项目实践,掌握核心概念和实用技能。每篇案例都包含代码实例,详细讲解供大家学习。 📌📌📌在这个漫长的过程,中途遇到了不少问题,但是…

VScode 右键没有转到定义等的菜单

问题&#xff1a; 右键点击该函数出现的结果只能是这样的&#xff1a; 解决&#xff1a; 通过修改 settings.json 文件&#xff0c;以解决问题&#xff1a; 这是原来有问题的配置&#xff1a; {"python.autoComplete.extraPaths": ["/home/robot/1-temp_mak…

【Linux】 reboot 命令使用

reboot 命令用于用来重新启动计算机。 语法 reboot [参数] 命令选项及作用 执行令 man --reboot 执行命令结果 参数 -n : 在重开机前不做将记忆体资料写回硬盘的动作-w : 并不会真的重开机&#xff0c;只是把记录写到 /var/log/wtmp 档案里-d : 不把记录写到 /var/log…

锁策略与CAS

目录 ♫什么是锁策略 ♫乐观锁与悲观锁 ♫互斥锁和读写锁 ♫重量级锁和轻量级锁 ♫自旋锁和挂起等待锁 ♫公平锁和非公平锁 ♫可重入锁和不可重入锁 ♫什么是CAS ♫CAS实现原子类 ♫CAS实现自旋锁 ♫CAS的ABA问题 ♫什么是锁策略 锁策略指的是在并发访问数据时&#xf…

创建一个自定义关卡资源(二)

接上一篇文章&#xff0c;做加载 再做加载之前&#xff0c;提一下 关于上一篇文章中的扩展编辑器&#xff0c;会有点小问题&#xff0c;会有重置的现象&#xff0c;现在有点忙&#xff0c;暂时不研究。 如果研究的话&#xff0c;我会出一篇&#xff08;三&#xff09; 否则就没…

哈希的介绍及开散列和闭散列的实现(c++)

本文主要对哈希的相关知识进行一定的介绍&#xff0c;并对哈希中结构的闭散列和开散列进行一定的介绍和部分功能的实现。 目录 一、哈希概念 二、哈希冲突 三、哈希函数 1. 直接定址法--(常用) 2. 除留余数法--(常用) 3. 平方取中法 4. 折叠法 5. 随机数法 6. 数学分析…

利用servlet实现对书籍书名、单价、数量等信息的添加,计算总价

1.题目要求 利用servlet实现对书籍书名、单价、数量等信息的添加&#xff0c;计算总价。 要求&#xff1a;输入两次表单信息&#xff0c;在一个成功返回的页面里面显示两次的数据。 2.Book实体类 package com.hjj.sevletgk.hw7.book;/*** author:嘉佳 Date:2023/10/8 15:16*…

Spring 常见面试题

1、Spring概述 1.1、Spring是什么? Spring是一个轻量级Java开发框架,目的是为了解决企业级应用开发的业务逻辑层和其他各层的耦合问题Spring最根本的使命是解决企业级应用开发的复杂性&#xff0c;即简化Java开发。这些功能的底层都依赖于它的两个核心特性&#xff0c;也就是…

Html 引入element UI + vue3 报错Failed to resolve component: el-button

问题&#xff1a;Html 引入element UI vue3 &#xff0c;el-button效果不出来 <!DOCTYPE html> <html> <head><meta charset"UTF-8"><!-- import Vue before Element --> <!-- <script src"https://unpkg.com/vue2/dist…

每次重启完IDEA,application.properties文件里的中文变成?

出现这种情况&#xff0c;在IDEA打开Settings-->Editor-->File Encodings 然后&#xff0c;你需要将问号改为你需要的汉字。 重启IDEA&#xff0c;再次查看你的.properties文件就会发现再没有变成问号了

k8s 配置资源管理

配置资源管理 //Secret Secret 是用来保存密码、token、密钥等敏感数据的 k8s 资源&#xff0c;这类数据虽然也可以存放在 Pod 或者镜像中&#xff0c;但是放在 Secret 中是为了更方便的控制如何使用数据&#xff0c;并减少暴露的风险。 有三种类型&#xff1a; ●kubernetes.…

Docker容器 虚拟化技术

Docker容器 1、容器化技术的由来 虚拟化技术发展已经非常强大了&#xff0c;那为什么还需要容器化技术呢&#xff1f; 如今的虚拟机解决了基础设计计算&#xff0c;网络&#xff0c;存储着几个方面的弹性&#xff0c;可以非常方便的扩展出应用的资源&#xff0c;但是仍然存在…

网页分析和xml.etree库

源代码&#xff1a; Lib/xml/etree/ElementTree.py 该xml.etree.ElementTree模块实现了一个简单高效的 API&#xff0c;用于解析和创建 XML 数据。 一、说明 这是一个简短的使用教程xml.etree.ElementTree&#xff08;ET简而言之&#xff09;。目标是演示该模块的一些构建块和基…

本地部署企业邮箱,让企业办公更安全高效

随着信息化时代的到来&#xff0c;企业邮箱几乎成了企业办公的标配&#xff0c;承载着企业业务往来和办公协同的重要职能。基于安全性、个性化需求、系统集成等方面的需要&#xff0c;许多企业选择本地部署企业邮箱&#xff0c;本地化部署不仅能有效保障企业信息安全的同时&…

【python小游戏】飞机大作战源码分享(附完整源码+图片资源可直接运行)

效果演示 源码 plane_main1.py import pygame from plane_sprites import * import timeclass PlaneGame(object):"""飞机大战主游戏"""def __init__(self):print("游戏初始化")# 1. 创建游戏的窗口self.screen pygame.display.set…

机器人制作开源方案 | 晾衣收纳一体机器人

一、作品简介 作者&#xff1a;仓天赐 黄云超 吴正乐 高骏 代思旭 单位&#xff1a;泰州学院 指导老师&#xff1a;宋向前 李杨作者&#xff1a;仓天赐 黄云超 吴正乐 高骏 代思旭 单位&#xff1a;泰州学院 指导老师&#xff1a;宋向前 李杨 与智能家居系统含义近似的…

Mathematica清除全局变量以及避免与内置命令冲突

自己在使用MMA的时候之前遇到过一个问题&#xff0c;就是发现使用 ClearAll["Global*"]这个命令并不能清除某些变量&#xff0c;例如 如果想要清除K这个变量则需要单独清除 Clear[K]。 实际上这是由于和MMA内部的一些预定义的命令或函数冲突的结果。其实其他变量都…

【修车案例】一波形一案例(8)

背景介绍&#xff1a;有客户问到如果气缸盖垫片失效&#xff0c;冷却液压力应该会有明显上升&#xff0c;用虹科Pico示波器怎么做这个诊断&#xff1f;我们找到一辆气缸盖垫片和冷却套坏了的丰田AD发动机进行测试分析。 示波器诊断&#xff1a; A通道 - WPS500X压力传感器测冷…

在 Vue3 中使用 mitt 进行组件通信

npm 包地址 mitt 是一个轻量级的 JavaScript 事件触发器&#xff0c; 只有200b。有基本的事件触发、订阅和取消订阅功能&#xff0c;还支持用命名空间来进行更高级的事件处理。 功能特点&#xff1a; Microscopic —— weighs less than 200 bytes gzippedUseful —— a wil…

【紫光同创国产FPGA教程】——【PGL22G第九章】HDMI环路实验例程

本原创教程由深圳市小眼睛科技有限公司创作&#xff0c;版权归本公司所有&#xff0c;如需转载&#xff0c;需授权并注明出处 适用于板卡型号&#xff1a; 紫光同创PGL22G开发平台&#xff08;盘古22K&#xff09; 一&#xff1a;盘古22K开发板&#xff08;紫光同创PGL22G开…