赞
踩
最近,在使用conda安装环境时,突然出现了报错,具体报错如下所示:
CondaVerificationError: The package for tk located at /home/anaconda3/pkgs/tk-8.6.12-h1ccaba5_0
appears to be corrupted. The path 'include/itclInt.h'
specified in the package manifest cannot be found.
The following NEW packages will be INSTALLED:
cycler pkgs/main/win-64::cycler-0.10.0-py38_0
freetype pkgs/main/win-64::freetype-2.10.4-hd328e21_0
icu pkgs/main/win-64::icu-58.2-ha925a31_3
jpeg pkgs/main/win-64::jpeg-9b-hb83a4c4_2
kiwisolver pkgs/main/win-64::kiwisolver-1.3.1-py38hd77b12b_0
libpng pkgs/main/win-64::libpng-1.6.37-h2a8f88b_0
libtiff pkgs/main/win-64::libtiff-4.2.0-hd0e1b90_0
lz4-c pkgs/main/win-64::lz4-c-1.9.3-h2bbff1b_0
matplotlib pkgs/main/win-64::matplotlib-3.3.4-py38haa95532_0
matplotlib-base pkgs/main/win-64::matplotlib-base-3.3.4-py38h49ac443_0
multitasking ranaroussi/noarch::multitasking-0.0.9-py_0
olefile pkgs/main/noarch::olefile-0.46-py_0
pillow pkgs/main/win-64::pillow-8.2.0-py38h4fa10fc_0
pyqt pkgs/main/win-64::pyqt-5.9.2-py38ha925a31_4
qt pkgs/main/win-64::qt-5.9.7-vc14h73c81de_0
quantstats ranaroussi/noarch::quantstats-0.0.25-py_0
seaborn pkgs/main/noarch::seaborn-0.11.1-pyhd3eb1b0_0
sip pkgs/main/win-64::sip-4.19.13-py38ha925a31_0
tabulate pkgs/main/win-64::tabulate-0.8.9-py38haa95532_0
tk pkgs/main/win-64::tk-8.6.10-he774522_0
xz pkgs/main/win-64::xz-5.2.5-h62dcd97_0
yfinance ranaroussi/noarch::yfinance-0.1.54-py_0
zstd pkgs/main/win-64::zstd-1.4.9-h19a0ad4_0
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: failed
CondaVerificationError: The package for yfinance located at C:\Users\Latitude User\anaconda3\pkgs\yfinance-0.1.54-py_0
appears to be corrupted. The path 'python-scripts/sample'
specified in the package manifest cannot be found.
CondaVerificationError: The package for yfinance located at C:\Users\Latitude User\anaconda3\pkgs\yfinance-0.1.54-py_0
appears to be corrupted. The path 'site-packages/yfinance-0.1.54.dist-info/INSTALLER'
specified in the package manifest cannot be found.
CondaVerificationError: The package for yfinance located at C:\Users\Latitude User\anaconda3\pkgs\yfinance-0.1.54-py_0
appears to be corrupted. The path 'site-packages/yfinance-0.1.54.dist-info/METADATA'
specified in the package manifest cannot be found.
CondaVerificationError: The package for yfinance located at C:\Users\Latitude User\anaconda3\pkgs\yfinance-0.1.54-py_0
appears to be corrupted. The path 'site-packages/yfinance-0.1.54.dist-info/RECORD'
specified in the package manifest cannot be found.
CondaVerificationError: The package for yfinance located at C:\Users\Latitude User\anaconda3\pkgs\yfinance-0.1.54-py_0
appears to be corrupted. The path 'site-packages/yfinance-0.1.54.dist-info/WHEEL'
specified in the package manifest cannot be found.
CondaVerificationError: The package for yfinance located at C:\Users\Latitude User\anaconda3\pkgs\yfinance-0.1.54-py_0
appears to be corrupted. The path 'site-packages/yfinance/__init__.py'
specified in the package manifest cannot be found.
CondaVerificationError: The package for yfinance located at C:\Users\Latitude User\anaconda3\pkgs\yfinance-0.1.54-py_0
appears to be corrupted. The path 'site-packages/yfinance/base.py'
specified in the package manifest cannot be found.
CondaVerificationError: The package for yfinance located at C:\Users\Latitude User\anaconda3\pkgs\yfinance-0.1.54-py_0
appears to be corrupted. The path 'site-packages/yfinance/multi.py'
specified in the package manifest cannot be found.
CondaVerificationError: The package for yfinance located at C:\Users\Latitude User\anaconda3\pkgs\yfinance-0.1.54-py_0
appears to be corrupted. The path 'site-packages/yfinance/shared.py'
specified in the package manifest cannot be found.
CondaVerificationError: The package for yfinance located at C:\Users\Latitude User\anaconda3\pkgs\yfinance-0.1.54-py_0
appears to be corrupted. The path 'site-packages/yfinance/ticker.py'
specified in the package manifest cannot be found.
CondaVerificationError: The package for yfinance located at C:\Users\Latitude User\anaconda3\pkgs\yfinance-0.1.54-py_0
appears to be corrupted. The path 'site-packages/yfinance/tickers.py'
specified in the package manifest cannot be found.
CondaVerificationError: The package for yfinance located at C:\Users\Latitude User\anaconda3\pkgs\yfinance-0.1.54-py_0
appears to be corrupted. The path 'site-packages/yfinance/utils.py'
specified in the package manifest cannot be found.
这样的报错,头一回见,直接给我整不会了。思考了一下报错原因,唯一做的事情就是在安装环境时,又同时在安装其他的库,所以我想其他的库和未安装完成的库之间可能出现了冲突导致的。
解决方法,如下所示:
conda clean --packages --tarballs
然后,再重新安装环境,就不会出现报错了
https://github.com/conda/conda/issues/4429
https://stackoverflow.com/questions/48404179/create-environment-python-3-5-errors
https://datascience.stackexchange.com/questions/41732/conda-verification-failed
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。