当前位置:   article > 正文

CentOS用Conda安装环境报InvalidArchiveError

CentOS用Conda安装环境报InvalidArchiveError
conda create --name env_name python=3.8.18
  • 1

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',)
......
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

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

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

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

sudo yum update libarchive
  • 1
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号