You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Python 3.9.7 + VSCode环境下安装CUDA版PyTorch nightly包遇numpy依赖找不到问题求助

Python 3.9.7 + VSCode环境下安装CUDA版PyTorch nightly包遇numpy依赖找不到问题求助

大家好,我现在的目标是能用上CUDA,所以尝试安装适配CUDA 11.6的PyTorch nightly版本,执行了下面这条安装命令:

pip install numpy --pre torch torchvision torchaudio --force-reinstall --index-url https://download.pytorch.org/whl/nightly/cu116

结果运行后弹出了报错信息:

Looking in indexes: https://download.pytorch.org/whl/nightly/cu116
ERROR: Could not find a version that satisfies the requirement numpy (from versions: none)
ERROR: No matching distribution found for numpy
Note: you may need to restart the kernel to use updated packages.

我已经把StackOverflow和GitHub上能找到的相关解决方案都试了一遍,但全都没起作用,有没有大佬能帮忙看看该怎么解决这个问题呀?

备注:内容来源于stack exchange,提问作者Lucy

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.23 08:27:41