win11 amd64 python安装matplotlib、pytorch报错记录

win11 amd64 python matplotlib 安装报错记录

安装时

错误是 metadata-generation-failed
查看上面的具体报错原因,来自:

Files\Python\Python3_10_11\Include: linker input file not found: No such file or director

注意Python 的路径中最好不要有空格,否则 安装时C++会编译不过,表示找不到路径

导入报错

DLL load failed while importing _c_internal_utils

当时安装的是 3.9.1 版本,后来改用 3.8.3 版本就好了。
参考:https://github.com/opendatalab/MinerU/issues/317

pytorch 导入报错

OSError: [WinError 126] 找不到指定的模块。 Error loading "D:\Python\Python3_10_11\lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies

这里下载了 https://github.com/lucasg/Dependencies 工具分析了 fbgemm.dll 这个文件的依赖,发现缺少 libomp140_x86_64.dll ,网上找了一个,放在 /Windows/System32 就好了

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值