报错信息
note: This error originates from a subprocess, and is likely not a problem with pip.ERROR: Failed building wheel for volcengine-python-sdkRunning setup.py clean for volcengine-python-sdkFailed to build volcengine-python-sdkERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (volcengine-python-sdk)
Windows下载豆包python大语言模型库报错
官方github库(提供了解决方法)
volcengine/volcengine-python-sdk (github.com)
报错原因
由于 Windows 系统有最长路径限制,可能会导致安装失败
解决方法
1.Win+R 输入 regedit 打开注册表编辑器
2.到路径\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem 下
3.找到LongPathsEnabled参数
4.将参数设置成 1
5.重新运行pip install volcengine-python-sdk
问题解决