Could not build wheels for xx which use PEP 517 and cannot be installed directly

安装dgl报错,Could not build wheels for xx which use PEP 517 and cannot be installed directly
查询后得知需要 更新pip

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

更新完后再次安装dgl,又有新的报错
在这里插入图片描述
查询后得知,缺少对应的wheel,手动下载安装。
下载并安装对应的whl文件,可以通过以下地址下载。
Unofficial Windows Binaries for Python Extension Packages
在index by date中找到自己需要的包,点进去找对应的版本
最后

pip install F:\Download\ChromeDownload\psutil-5.9.0-cp38-cp38-win_amd64.whl

安装成功

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
回答: 出现"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个

红包金额最低5元

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

抵扣说明:

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

余额充值