Python,volcengine-python-sdk,安装失败,提示which is required to install pyproject.toml-based projects等问题

问题描述:

我是安装截止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,一次性安装成功

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值