解决no model named ‘d2l.xxx‘和安装pip install d2l==0.17.6时出现Could not build wheels for pandas

文章描述了在使用pip安装pandas和d2l库时遇到的编译错误,提到了解决方案是确保正确安装了对应Python版本的pandas,并提供了GohlkePythonlibs网站链接来下载兼容的pandas版本。此外,还建议安装VC++基本编译器以解决编译问题。对于d2l,需要确保安装版本至少为0.17.0,因为低版本可能缺少某些功能。
摘要由CSDN通过智能技术生成

报错:

      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pandas
Failed to build pandas
ERROR: Could not build wheels for pandas, which is required to install pyproject.toml-based projects

整了一上午才发现只需要:笑死

**pip install d2l==0.17.0**

前提是安装好对应python版本合适的pandas
pandas版本安装网址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#_pandas
如果还有报错建议安装vc++的基本编译器,总共也就不到10g
no model named 'd2l.xxx’是因为低于d2l==0.17.0版本的有很多函数并没有被写入

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值