CentOS用Conda安装环境报InvalidArchiveError

conda create --name env_name python=3.8.18

在centos系统的python项目创建虚拟环境时,报如下错误:

......
InvalidArchiveError('Error with archive /var/cache/conda/pkgs/libgomp-11.2.0-h1234567_17willmw2/info-libgomp-11.2.0-h1234567_1.tar.zst.  You probably need to delete and re-download or re-create this file.  Message from libarchive was:\n\nUnrecognized archive format',)
InvalidArchiveError('Error with archive /var/cache/conda/pkgs/libstdcxx-ng-11.2.0-h1234567_1876a2u5h/info-libstdcxx-ng-11.2.0-h1234567_1.tar.zst.  You probably need to delete and re-download or re-create this file.  Message from libarchive was:\n\nUnrecognized archive format',)
InvalidArchiveError('Error with archive /var/cache/conda/pkgs/tk-8.6.12-h1ccaba5_0_meb3b9a/info-tk-8.6.12-h1ccaba5_0.tar.zst.  You probably need to delete and re-download or re-create this file.  Message from libarchive was:\n\nUnrecognized archive format',)
InvalidArchiveError('Error with archive /var/cache/conda/pkgs/python-3.8.18-h955ad1f_0jwt53bly/info-python-3.8.18-h955ad1f_0.tar.zst.  You probably need to delete and re-download or re-create this file.  Message from libarchive was:\n\nUnrecognized archive format',)
InvalidArchiveError('Error with archive /var/cache/conda/pkgs/ld_impl_linux-64-2.38-h1181459_1f9b7zjv4/info-ld_impl_linux-64-2.38-h1181459_1.tar.zst.  You probably need to delete and re-download or re-create this file.  Message from libarchive was:\n\nUnrecognized archive format',)
InvalidArchiveError('Error with archive /var/cache/conda/pkgs/wheel-0.41.2-py38h06a4308_0cvumgab3/info-wheel-0.41.2-py38h06a4308_0.tar.zst.  You probably need to delete and re-download or re-create this file.  Message from libarchive was:\n\nUnrecognized archive format',)
InvalidArchiveError('Error with archive /var/cache/conda/pkgs/sqlite-3.41.2-h5eee18b_027fbbqnu/info-sqlite-3.41.2-h5eee18b_0.tar.zst.  You probably need to delete and re-download or re-create this file.  Message from libarchive was:\n\nUnrecognized archive format',)
......

网上找了各种资料,均没有解决
比如:

  • 权限问题导致,我是root用户,不存在
  • 清理pkgs下的无用的包和缓存数据,conda clean --all,也没用,重新安装后还是一样
  • 等等等

最终,根据信息理解,libarchive无法读取归档文件.tar.zst,查询libarchive是否支持这个压缩包格式,支持,那就考虑版本太低问题,最终升级libarchive解决

sudo yum update libarchive
  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值