python 安装环境时出现报错:CondaVerificationError: The package for tk located at /home/anaconda3/pkgs/t
生活随笔
收集整理的這篇文章主要介紹了
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_0freetype pkgs/main/win-64::freetype-2.10.4-hd328e21_0icu pkgs/main/win-64::icu-58.2-ha925a31_3jpeg pkgs/main/win-64::jpeg-9b-hb83a4c4_2kiwisolver pkgs/main/win-64::kiwisolver-1.3.1-py38hd77b12b_0libpng pkgs/main/win-64::libpng-1.6.37-h2a8f88b_0libtiff pkgs/main/win-64::libtiff-4.2.0-hd0e1b90_0lz4-c pkgs/main/win-64::lz4-c-1.9.3-h2bbff1b_0matplotlib pkgs/main/win-64::matplotlib-3.3.4-py38haa95532_0matplotlib-base pkgs/main/win-64::matplotlib-base-3.3.4-py38h49ac443_0multitasking ranaroussi/noarch::multitasking-0.0.9-py_0olefile pkgs/main/noarch::olefile-0.46-py_0pillow pkgs/main/win-64::pillow-8.2.0-py38h4fa10fc_0pyqt pkgs/main/win-64::pyqt-5.9.2-py38ha925a31_4qt pkgs/main/win-64::qt-5.9.7-vc14h73c81de_0quantstats ranaroussi/noarch::quantstats-0.0.25-py_0seaborn pkgs/main/noarch::seaborn-0.11.1-pyhd3eb1b0_0sip pkgs/main/win-64::sip-4.19.13-py38ha925a31_0tabulate pkgs/main/win-64::tabulate-0.8.9-py38haa95532_0tk pkgs/main/win-64::tk-8.6.10-he774522_0xz pkgs/main/win-64::xz-5.2.5-h62dcd97_0yfinance ranaroussi/noarch::yfinance-0.1.54-py_0zstd pkgs/main/win-64::zstd-1.4.9-h19a0ad4_0Proceed ([y]/n)? yPreparing transaction: done Verifying transaction: failedCondaVerificationError: 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
總結
以上是生活随笔為你收集整理的python 安装环境时出现报错:CondaVerificationError: The package for tk located at /home/anaconda3/pkgs/t的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 第七章 在网页中嵌入多媒体内容
- 下一篇: Ubuntu 18.04 桌面卡死