问题描述
之前把anaconda的位置移动过,旧环境没有问题,安装新环境的时候,在安装包的时候报错。
CondaVerificationError: The package for filelock located at /data16t/xx/anaconda3/anaconda3/pkgs/filelock-3.13.1-py39h06a4308_0
appears to be corrupted. The path 'lib/python3.9/site-packages/filelock/__pycache__/version.cpython-39.pyc'
specified in the package manifest cannot be found.
CondaVerificationError: The package for markupsafe located at /data16t/xx/anaconda3/anaconda3/pkgs/markupsafe-2.1.3-py39h5eee18b_0
appears to be corrupted. The path 'lib/python3.9/site-packages/markupsafe/__pycache__/__init__.cpython-39.pyc'
specified in the package manifest cannot be found.
解决方法
把对应路径下的文件删除,重新安装就可以。
rm -r lib/python3.9/site-packages/markupsafe/__pycache__/__init__.cpython-39.pyc
在base环境下安装。每报错一次,就删除相应的文件夹,重新安装就可以。
conda install markupsafe