Anaconda中出现CondaVerificationError: The package for readline错误解决

Anaconda中出现CondaVerificationError: The package for readline错误解决

环境:

ubuntu20.04

问题描述

在使用anaconda创建虚拟环境时,安装速度非常快,但是出现如下错误:

    package                    |            build
    ---------------------------|-----------------
    _libgcc_mutex-0.1          |             main           3 KB  defaults
    ca-certificates-2020.10.14 |                0         121 KB  defaults
    certifi-2020.6.20          |           py37_0         156 KB  defaults
    ld_impl_linux-64-2.33.1    |       h53a641e_7         568 KB  defaults
    libedit-3.1.20191231       |       h14c3975_1         116 KB  defaults
    libffi-3.3                 |       he6710b0_2          50 KB  defaults
    libgcc-ng-9.1.0            |       hdf63c60_0         5.1 MB  defaults
    ncurses-6.2                |       he6710b0_1         817 KB  defaults
    pip-20.2.3                 |           py37_0         1.7 MB  defaults
    python-3.7.9               |       h7579374_0        45.3 MB  defaults
    setuptools-50.3.0          |   py37hb0f4dca_1         710 KB  defaults
    sqlite-3.33.0              |       h62c20be_0         1.1 MB  defaults
    wheel-0.35.1               |             py_0          37 KB  defaults
    xz-5.2.5                   |       h7b6447c_0         341 KB  defaults
    zlib-1.2.11                |       h7b6447c_3         103 KB  defaults
    ------------------------------------------------------------
                                           Total:        56.2 MB

The following NEW packages will be INSTALLED:

  _libgcc_mutex      anaconda/pkgs/main/linux-64::_libgcc_mutex-0.1-main
  ca-certificates    anaconda/pkgs/main/linux-64::ca-certificates-2020.10.14-0
  certifi            anaconda/pkgs/main/linux-64::certifi-2020.6.20-py37_0
  ld_impl_linux-64   anaconda/pkgs/main/linux-64::ld_impl_linux-64-2.33.1-h53a641e_7
  libedit            anaconda/pkgs/main/linux-64::libedit-3.1.20191231-h14c3975_1
  libffi             anaconda/pkgs/main/linux-64::libffi-3.3-he6710b0_2
  libgcc-ng          anaconda/pkgs/main/linux-64::libgcc-ng-9.1.0-hdf63c60_0
  libstdcxx-ng       anaconda/pkgs/main/linux-64::libstdcxx-ng-9.1.0-hdf63c60_0
  ncurses            anaconda/pkgs/main/linux-64::ncurses-6.2-he6710b0_1
  openssl            anaconda/pkgs/main/linux-64::openssl-1.1.1h-h7b6447c_0
  pip                anaconda/pkgs/main/linux-64::pip-20.2.3-py37_0
  python             anaconda/pkgs/main/linux-64::python-3.7.9-h7579374_0
  readline           anaconda/pkgs/main/linux-64::readline-8.0-h7b6447c_0
  setuptools         anaconda/pkgs/main/linux-64::setuptools-50.3.0-py37hb0f4dca_1
  sqlite             anaconda/pkgs/main/linux-64::sqlite-3.33.0-h62c20be_0
  tk                 anaconda/pkgs/main/linux-64::tk-8.6.10-hbc83047_0
  wheel              anaconda/pkgs/main/noarch::wheel-0.35.1-py_0
  xz                 anaconda/pkgs/main/linux-64::xz-5.2.5-h7b6447c_0
  zlib               anaconda/pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3



Downloading and Extracting Packages
zlib-1.2.11          | 103 KB    | ##################################### | 100% 
ca-certificates-2020 | 121 KB    | ##################################### | 100% 
setuptools-50.3.0    | 710 KB    | ##################################### | 100% 
xz-5.2.5             | 341 KB    | ##################################### | 100% 
libedit-3.1.20191231 | 116 KB    | ##################################### | 100% 
certifi-2020.6.20    | 156 KB    | ##################################### | 100% 
libgcc-ng-9.1.0      | 5.1 MB    | ##################################### | 100% 
libffi-3.3           | 50 KB     | ##################################### | 100% 
sqlite-3.33.0        | 1.1 MB    | ##################################### | 100% 
_libgcc_mutex-0.1    | 3 KB      | ##################################### | 100% 
ld_impl_linux-64-2.3 | 568 KB    | ##################################### | 100% 
wheel-0.35.1         | 37 KB     | ##################################### | 100% 
python-3.7.9         | 45.3 MB   | ##################################### | 100% 
pip-20.2.3           | 1.7 MB    | ##################################### | 100% 
ncurses-6.2          | 817 KB    | ##################################### | 100% 
Preparing transaction: done
Verifying transaction: failed

CondaVerificationError: The package for libstdcxx-ng located at /home/sha/anaconda3/pkgs/libstdcxx-ng-9.1.0-hdf63c60_0
appears to be corrupted. The path 'lib/libstdc++.so'
specified in the package manifest cannot be found.

CondaVerificationError: The package for libstdcxx-ng located at /home/sha/anaconda3/pkgs/libstdcxx-ng-9.1.0-hdf63c60_0
appears to be corrupted. The path 'lib/libstdc++.so.6'
specified in the package manifest cannot be found.

CondaVerificationError: The package for libstdcxx-ng located at /home/sha/anaconda3/pkgs/libstdcxx-ng-9.1.0-hdf63c60_0
appears to be corrupted. The path 'lib/libstdc++.so.6.0.26'
specified in the package manifest cannot be found.

CondaVerificationError: The package for libstdcxx-ng located at /home/sha/anaconda3/pkgs/libstdcxx-ng-9.1.0-hdf63c60_0
appears to be corrupted. The path 'x86_64-conda_cos6-linux-gnu/sysroot/lib/libstdc++.so'
specified in the package manifest cannot be found.

CondaVerificationError: The package for libstdcxx-ng located at /home/sha/anaconda3/pkgs/libstdcxx-ng-9.1.0-hdf63c60_0
appears to be corrupted. The path 'x86_64-conda_cos6-linux-gnu/sysroot/lib/libstdc++.so.6'
specified in the package manifest cannot be found.

CondaVerificationError: The package for libstdcxx-ng located at /home/sha/anaconda3/pkgs/libstdcxx-ng-9.1.0-hdf63c60_0
appears to be corrupted. The path 'x86_64-conda_cos6-linux-gnu/sysroot/lib/libstdc++.so.6.0.26'
specified in the package manifest cannot be found.

CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'bin/c_rehash'
specified in the package manifest cannot be found.

CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'bin/openssl'
specified in the package manifest cannot be found.

CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'lib/engines-1.1/afalg.so'
specified in the package manifest cannot be found.

CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'lib/engines-1.1/capi.so'
specified in the package manifest cannot be found.

CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'lib/engines-1.1/padlock.so'
specified in the package manifest cannot be found.

CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'ssl/misc/CA.pl'
specified in the package manifest cannot be found.

CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'ssl/misc/tsget'
specified in the package manifest cannot be found.

CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'ssl/misc/tsget.pl'
specified in the package manifest cannot be found.

在这里插入图片描述

问题解决

导致这个问题的原因是anaconda的缓存导致错误
解决方法如下:
首先尝试:

conda clean --all

如果这个运行完这个之后重新创建虚拟环境成了,那么恭喜你!
如果不成功,则执行如下操作:
删除anaconda安装目录下的pkgs下的所有文件
在这里插入图片描述
再重新创建虚拟环境即可

结果

查看虚拟环境,可以看到,已经创建好环境
在这里插入图片描述

评论 15
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Hurri_cane

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值