python 安装环境时出现报错:CondaVerificationError: The package for tk located at /home/anaconda3/pkgs/t

python安装环境时无法成功安装包

最近,在使用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

  • 6
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

简朴-ocean

继续进步

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值