解决“Could not build wheels for xx which use PEP 517 and cannot be installed directly“问题

在安装apache_beam时,报如下错误:
在这里插入图片描述
更新pip 和 setuptools

python -m pip install --upgrade pip
python -m pip install --upgrade setuptools

如果在升级pip时,报如下错误:
在这里插入图片描述
可以使用下面的命令进行升级pip:

easy_install -U pip

都升级过后,再次安装即可:

pip install apache_beam

在这里插入图片描述

  • 33
    点赞
  • 42
    收藏
    觉得还不错? 一键收藏
  • 10
    评论
回答: 出现"Could not build wheels for pymssql which use PEP 517 and cannot be installed directly"的错误是由于缺少编译所需的工具或库。根据引用,你需要安装Microsoft Visual C++ 14.0或更高版本。你可以从"https://visualstudio.microsoft.com/visual-cpp-build-tools/"下载并安装Microsoft C++ Build Tools。另外,根据引用,你可以尝试更新pip和setuptools来解决问题,可以使用以下命令更新pip和setuptools: python -m pip install --upgrade pip python -m pip install --upgrade setuptools 如果你仍然遇到问题,你可以尝试从"https://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql"下载与你的Python版本和系统匹配的pymssql的预编译二进制文件。根据引用,下载后将文件复制到你的项目目录或Python安装目录的Scripts文件夹中。然后你可以使用pip命令安装pymssql。希望这些步骤能够帮助你解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [Could not build wheels for xx which use PEP 517 and cannot be installed directly](https://blog.csdn.net/qq_35372691/article/details/127744754)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [python安装 pymssql 异常](https://blog.csdn.net/cqkcm/article/details/124171420)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值