昨天晚上在 Anaconda prompt 中创建虚拟环境pyspark中发生报错:
conda create -n pyspark python=3.8
然后就发生了报错: You probably need to delete and re-download or re-create this file.
InvalidArchiveError("Error with archive C:\\Users\\王学斌\\.conda\\pkgs\\sqlite-3.37.0-h2bbff1b_0glqe2t_x\\info-sqlite-3.37.0-h2bbff1b_0.tar.zst. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFailed to open 'C:\\Users\\王学斌\\.conda\\pkgs\\sqlite-3.37.0-h2bbff1b_0glqe2t_x\\info-sqlite-3.37.0-h2bbff1b_0.tar.zst'")
InvalidArchiveError("Error with archive C:\\Users\\王学斌\\.conda\\pkgs\\wincertstore-0.2-py38haa95532_2o6e4z0uh\\info-wincertstore-0.2-py38haa95532_2.tar.zst. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFailed to open 'C:\\Users\\王学斌\\.conda\\pkgs\\wincertstore-0.2-py38haa95532_2o6e4z0uh\\info-wincertstore-0.2-py38haa95532_2.

在Win10系统中使用Anaconda进行Python环境管理时遇到InvalidArchiveError,该错误通常由于对conda安装目录缺乏写权限导致。解决方法包括:进入Anaconda安装文件夹的属性,赋予当前用户完全控制权限,或者在Mac系统中通过修改文件夹权限来解决问题。执行上述操作后,可成功创建和管理虚拟环境。
最低0.47元/天 解锁文章


被折叠的 条评论
为什么被折叠?



