You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Databricks CLI安装包能否绕过哈希?Lakebridge Transpile哈希错误求助

Databricks Lakebridge Transpile安装时哈希不匹配问题求助

环境信息

  • Python 3.10
  • Java ≥11
  • Databricks CLI(版本0.258.0,Windows AMD64)

已完成操作

我已完成Lakebridge的初始安装,期间曾遇到哈希问题,通过清理pip缓存解决,执行的命令如下:

C:\Users\xxx>py -3.10 -m pip cache purge
Files removed: 276 (50.2 MB)

C:\Users\xxx>pip cache purge
WARNING: No matching packages
Files removed: 0

C:\Users\xxx>set PIP_NO_BUILD_ISOLATION=1

C:\Users\xxx>cd Desktop\xxx\lakebridge\databricks_cli_0.258.0_windows_amd64

C:\Users\xxx\Desktop\xxx\lakebridge\databricks_cli_0.258.0_windows_amd64>databricks labs install lakebridge --profile lakebridge
13:47:15     INFO [src/databricks/labs/lakebridge] Successfully Setup Lakebridge Components Locally
13:47:15     INFO [src/databricks/labs/lakebridge] For more information, please visit https://databrickslabs.github.io/lakebridge/

当前问题

现在需要安装Transpile以迁移DataStage作业到Databricks,但清理pip缓存无效,执行databricks labs lakebridge install-transpile时出现哈希不匹配报错:

C:\Users\xxx\Desktop\xxx\lakebridge\databricks_cli_0.258.0_windows_amd64>databricks labs lakebridge install-transpile
Looking in links: c:\Users\xxx\AppData\Local\Temp\tmppwi__0cz
Processing c:\users\xxx\appdata\local\temp\tmppwi__0cz\setuptools-58.1.0-py3-none-any.whl
Processing c:\users\xxx\appdata\local\temp\tmppwi__0cz\pip-22.0.4-py3-none-any.whl
Installing collected packages: setuptools, pip
Successfully installed pip-22.0.4 setuptools-58.1.0
Collecting databricks-bb-plugin
  Downloading databricks_bb_plugin-0.1.24-py3-none-any.whl (9.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/9.5 MB 414.0 kB/s eta 0:00:23
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    databricks-bb-plugin from https://files.pythonhosted.org/packages/89/d6/cb1f8d64e63ff2a0e77773f069b3189890a90e799103a953a6d15752acf8/databricks_bb_plugin-0.1.24-py3-none-any.whl#sha256=4ad8914a302aabbcb83e19c6ebbf247f737726d84461de9966781c62a7401b47:
        Expected sha256 4ad8914a302aabbcb83e19c6ebbf247f737726d84461de9966781c62a7401b47
             Got        2742174838a93965a4e2d17be31cbea06b15fa291b07f72093874ddaf95a327c

22:18:21    ERROR [d.l.l.transpiler.installers] Failed to install bladebridge transpiler (v0.1.24)
Traceback (most recent call last):
  File "C:\Users\xxx\.databricks\labs\lakebridge\lib\src\databricks\labs\lakebridge\transpiler\installers.py", line 133, in _install_version_with_backup
    result = self._install_version(version)
  File "C:\Users\xxx\.databricks\labs\lakebridge\lib\src\databricks\labs\lakebridge\transpiler\installers.py", line 213, in _install_version
    self._install_with_pip()
  File "C:\Users\xxx\.databricks\labs\lakebridge\lib\src\databricks\labs\lakebridge\transpiler\installers.py", line 262, in _install_with_pip
    result.check_returncode()
  File "C:\Program Files\Python310\lib\subprocess.py", line 456, in check_returncode
    raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '["C:\\Users\\xxx\\.databricks\\labs\\remorph-transpilers\\bladebridge\\lib\\.venv\\Scripts\\python.exe", "-m", "pip", "--require-virtualenv", "--disable-pip-version-check", "install", "databricks-bb-plugin", "--only-binary=:all:"]' returned non-zero exit status 1.
Select the source dialect:
[0] Set it later
[1] mssql
[2] snowflake
[3] synapse

请问有没有人遇到过类似问题?求可行的解决方案,谢谢!

内容的提问来源于stack exchange,提问作者danio900409

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.11 16:05:09