问题描述:
我是安装截止20240804发布的最新版本,volcengine-python-sdk-1.0.94.tar.gz
报错一
报错最后提示:which is required to install pyproject.toml-based projects
...
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for volcengine-python-sdk
Running setup.py clean for volcengine-python-sdk
Failed to build volcengine-python-sdk
ERROR: Could not build wheels for volcengine-python-sdk, which is required to install pyproject.toml-based projects
解决方案:
由于 Windows 系统有最长路径限制,导致安装失败,按照以下方式设置:
1. 按下 Win+R ,输入 regedit 打开注册表编辑器。
2. 设置 \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem 路径下的变量 LongPathsEnabled 为 1 即可。
3. 重新安装
报错二
报错中间提示:subprocess-exited-with-error
Collecting volcengine-python-sdk
Using cached http://mirrors.aliyun.com/pypi/packages/5d/88/a757c9ab3677e4e8d22a57780b1e4bd1d0e706733cf5b00e4c8652746e52/volcengine-python-sdk-1.0.94.tar.gz (2.2 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
解决方案:
我在win10、python3.11.5,遇到了这个问题,尝试了各种解决方案,无解!!!!
最后安装python3.9,一次性安装成功
标签:pyproject,based,install,python,subprocess,报错,volcengine,error,sdk From: https://blog.csdn.net/qq_61523551/article/details/140904375