当前位置:   article > 正文

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

the package for python located at /home/data2/gcx/.conda/pkgs/python-3.8.18-

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.
  • 1
  • 2
  • 3
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.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79

这样的报错,头一回见,直接给我整不会了。思考了一下报错原因,唯一做的事情就是在安装环境时,又同时在安装其他的库,所以我想其他的库和未安装完成的库之间可能出现了冲突导致的。

解决方法,如下所示:

conda clean --packages --tarballs
  • 1

然后,再重新安装环境,就不会出现报错了

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/149471
推荐阅读
相关标签
  

闽ICP备14008679号