win10 下python pip 安装 numba(llvmlite)和torch

pip install numba

或者

python -m pip install --upgrade --no-deps --force-reinstall git+https://github.com/numba/numba.git

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

安装时容易报错,比如这样的错语

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

装上面这些东东, 只是为了把py的脚本转为win下可执行的exe文件

没想到windows 10 下的python依赖关系堪比LFS,  远比arch麻烦,  更没法和ubuntu 的deb系比, 但总算搞定了,有图为证, 记录一下, 方便日后查询

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值