准备新建一个env的时候,conda报:
CondaVerificationError: The package for wheel located at /home/yu/anaconda3/pkgs/wheel-0.36.2-pyhd3eb1b0_0
appears to be corrupted. The path 'site-packages/wheel/vendored/__init__.py'
specified in the package manifest cannot be found.CondaVerificationError: The package for wheel located at /home/yu/anaconda3/pkgs/wheel-0.36.2-pyhd3eb1b0_0
appears to be corrupted. The path 'site-packages/wheel/vendored/packaging/__init__.py'
specified in the package manifest cannot be found.
解决方法也很简单,按照这里网友的建议:https://blog.csdn.net/qq_35240640/article/details/114039835
把anaconda3/pkgs/下对应的包删掉就可以了。
而运行:conda clean --packages --tarballs 或者 conda clean --all 是没有用的。
另外,吐槽一下,之所以要新建env的原因是,想装一下PyTorch Geometric (PyG),我之前写GNNs主要用的是DGL,一直没用过的Geometric。按照这里:https://github.com/rusty1s/pytorch_geometric
如果直接运行:
conda install pytorch-geometric -c rusty1s -c conda-forge
发现会把现有的Pytorch替换掉,才想起来可能自己的pytorch版本比较老吧:
The following packages will be UPDATED:
ca-certificates pkgs/main::ca-certificates-2021.5.25-~ --> conda-forge::ca-certificates-2021.5.30-ha878542_0
mkl 2020.1-217 --> 2020.2-256
pytorch pytorch::pytorch-1.6.0-py3.7_cuda10.2~ --> pkgs/main::pytorch-1.8.1-cpu_py37h60491be_0
这个……,你要替换我也能理解,为啥换成CPU版本的呢。所以没办法,才准备再新建一个env了。