ubuntu20.04
在使用anaconda创建虚拟环境时,安装速度非常快,但是出现如下错误:
package | build
---------------------------|-----------------
_libgcc_mutex-0.1 | main 3 KB defaults
ca-certificates-2020.10.14 | 0 121 KB defaults
certifi-2020.6.20 | py37_0 156 KB defaults
ld_impl_linux-64-2.33.1 | h53a641e_7 568 KB defaults
libedit-3.1.20191231 | h14c3975_1 116 KB defaults
libffi-3.3 | he6710b0_2 50 KB defaults
libgcc-ng-9.1.0 | hdf63c60_0 5.1 MB defaults
ncurses-6.2 | he6710b0_1 817 KB defaults
pip-20.2.3 | py37_0 1.7 MB defaults
python-3.7.9 | h7579374_0 45.3 MB defaults
setuptools-50.3.0 | py37hb0f4dca_1 710 KB defaults
sqlite-3.33.0 | h62c20be_0 1.1 MB defaults
wheel-0.35.1 | py_0 37 KB defaults
xz-5.2.5 | h7b6447c_0 341 KB defaults
zlib-1.2.11 | h7b6447c_3 103 KB defaults
------------------------------------------------------------
Total: 56.2 MB
The following NEW packages will be INSTALLED:
_libgcc_mutex anaconda/pkgs/main/linux-64::_libgcc_mutex-0.1-main
ca-certificates anaconda/pkgs/main/linux-64::ca-certificates-2020.10.14-0
certifi anaconda/pkgs/main/linux-64::certifi-2020.6.20-py37_0
ld_impl_linux-64 anaconda/pkgs/main/linux-64::ld_impl_linux-64-2.33.1-h53a641e_7
libedit anaconda/pkgs/main/linux-64::libedit-3.1.20191231-h14c3975_1
libffi anaconda/pkgs/main/linux-64::libffi-3.3-he6710b0_2
libgcc-ng anaconda/pkgs/main/linux-64::libgcc-ng-9.1.0-hdf63c60_0
libstdcxx-ng anaconda/pkgs/main/linux-64::libstdcxx-ng-9.1.0-hdf63c60_0
ncurses anaconda/pkgs/main/linux-64::ncurses-6.2-he6710b0_1
openssl anaconda/pkgs/main/linux-64::openssl-1.1.1h-h7b6447c_0
pip anaconda/pkgs/main/linux-64::pip-20.2.3-py37_0
python anaconda/pkgs/main/linux-64::python-3.7.9-h7579374_0
readline anaconda/pkgs/main/linux-64::readline-8.0-h7b6447c_0
setuptools anaconda/pkgs/main/linux-64::setuptools-50.3.0-py37hb0f4dca_1
sqlite anaconda/pkgs/main/linux-64::sqlite-3.33.0-h62c20be_0
tk anaconda/pkgs/main/linux-64::tk-8.6.10-hbc83047_0
wheel anaconda/pkgs/main/noarch::wheel-0.35.1-py_0
xz anaconda/pkgs/main/linux-64::xz-5.2.5-h7b6447c_0
zlib anaconda/pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3
Downloading and Extracting Packages
zlib-1.2.11 | 103 KB | ##################################### | 100%
ca-certificates-2020 | 121 KB | ##################################### | 100%
setuptools-50.3.0 | 710 KB | ##################################### | 100%
xz-5.2.5 | 341 KB | ##################################### | 100%
libedit-3.1.20191231 | 116 KB | ##################################### | 100%
certifi-2020.6.20 | 156 KB | ##################################### | 100%
libgcc-ng-9.1.0 | 5.1 MB | ##################################### | 100%
libffi-3.3 | 50 KB | ##################################### | 100%
sqlite-3.33.0 | 1.1 MB | ##################################### | 100%
_libgcc_mutex-0.1 | 3 KB | ##################################### | 100%
ld_impl_linux-64-2.3 | 568 KB | ##################################### | 100%
wheel-0.35.1 | 37 KB | ##################################### | 100%
python-3.7.9 | 45.3 MB | ##################################### | 100%
pip-20.2.3 | 1.7 MB | ##################################### | 100%
ncurses-6.2 | 817 KB | ##################################### | 100%
Preparing transaction: done
Verifying transaction: failed
CondaVerificationError: The package for libstdcxx-ng located at /home/sha/anaconda3/pkgs/libstdcxx-ng-9.1.0-hdf63c60_0
appears to be corrupted. The path 'lib/libstdc++.so'
specified in the package manifest cannot be found.
CondaVerificationError: The package for libstdcxx-ng located at /home/sha/anaconda3/pkgs/libstdcxx-ng-9.1.0-hdf63c60_0
appears to be corrupted. The path 'lib/libstdc++.so.6'
specified in the package manifest cannot be found.
CondaVerificationError: The package for libstdcxx-ng located at /home/sha/anaconda3/pkgs/libstdcxx-ng-9.1.0-hdf63c60_0
appears to be corrupted. The path 'lib/libstdc++.so.6.0.26'
specified in the package manifest cannot be found.
CondaVerificationError: The package for libstdcxx-ng located at /home/sha/anaconda3/pkgs/libstdcxx-ng-9.1.0-hdf63c60_0
appears to be corrupted. The path 'x86_64-conda_cos6-linux-gnu/sysroot/lib/libstdc++.so'
specified in the package manifest cannot be found.
CondaVerificationError: The package for libstdcxx-ng located at /home/sha/anaconda3/pkgs/libstdcxx-ng-9.1.0-hdf63c60_0
appears to be corrupted. The path 'x86_64-conda_cos6-linux-gnu/sysroot/lib/libstdc++.so.6'
specified in the package manifest cannot be found.
CondaVerificationError: The package for libstdcxx-ng located at /home/sha/anaconda3/pkgs/libstdcxx-ng-9.1.0-hdf63c60_0
appears to be corrupted. The path 'x86_64-conda_cos6-linux-gnu/sysroot/lib/libstdc++.so.6.0.26'
specified in the package manifest cannot be found.
CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'bin/c_rehash'
specified in the package manifest cannot be found.
CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'bin/openssl'
specified in the package manifest cannot be found.
CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'lib/engines-1.1/afalg.so'
specified in the package manifest cannot be found.
CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'lib/engines-1.1/capi.so'
specified in the package manifest cannot be found.
CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'lib/engines-1.1/padlock.so'
specified in the package manifest cannot be found.
CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'ssl/misc/CA.pl'
specified in the package manifest cannot be found.
CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'ssl/misc/tsget'
specified in the package manifest cannot be found.
CondaVerificationError: The package for openssl located at /home/sha/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0
appears to be corrupted. The path 'ssl/misc/tsget.pl'
specified in the package manifest cannot be found.
导致这个问题的原因是anaconda的缓存导致错误
解决方法如下:
首先尝试:
conda clean --all
如果这个运行完这个之后重新创建虚拟环境成了,那么恭喜你!
如果不成功,则执行如下操作:
删除anaconda安装目录下的pkgs下的所有文件
再重新创建虚拟环境即可