AI软件下载
有趣网站推荐及实用软件下载

应用报错RuntimeError: Could not locate a supported Microsoft Visual C++ installation解决方法

python应用在安装时报错,部分错误信息如下:

Running command git clone –filter=blob:none –quiet https://github.com/NVlabs/tiny-cuda-nn/ ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-d1ifdg6v’
Resolved https://github.com/NVlabs/tiny-cuda-nn/ to commit c91138bcd4c6877c8d5e60e483c0581aafc70cce
Running command git submodule update –init –recursive -q
Preparing metadata (setup.py) … error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File “”, line 2, in
File “”, line 34, in
File “C:\Users\Administrator\AppData\Local\Temp\pip-req-build-d1ifdg6v\bindings/torch\setup.py”, line 72, in
raise RuntimeError(“Could not locate a supported Microsoft Visual C++ installation”)
RuntimeError: Could not locate a supported Microsoft Visual C++ installation

Building PyTorch extension for tiny-cuda-nn version 1.7
Obtained compute capability 75 from PyTorch

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

在安装 tiny-cuda-nn 时,找不到支持的 Microsoft Visual C++ 编译器,解决方法

首先检查电脑是否安装Microsoft Visual Studio及【使用C++的桌面开发】模块

应用报错RuntimeError: Could not locate a supported Microsoft Visual C++ installation解决方法

VS 2022微软官网下载链接https://visualstudio.microsoft.com/zh-hans/downloads/

如果是电脑上已经安装了VS的话,那应该是没有安装到默认路径,比如C盘以外,我安装到了E盘里,所以这个地方报错了,将cl.exe路径添加到系统环境变量path中即可,如我的电脑上cl.exe路径地址:E:\Microsoft\2022\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64,你可以根据参考找到你的路径地址添加到系统环境变量中,重新运行应用或cmd窗口即可


AI软件用不了?2元爽玩4090: 立即体验>>

热门大语言模型API免费体验: 立即获取>>

软件催更及1对1人工答疑支持: https://nuowa.net/1806
赞(0) 打赏
软件无法使用?点击查看常见问题说明>>

最近更新

LTX2.3+comfyui音频驱动视频生成工作流

这是一个基于 ComfyUI 的 LTX 2.3 音视频同步生成工作流,核心功能是上传一段音频 + 参考图片(可多张图),自动生成与音频内容对应的视频,适合制作人物说话、唱歌等口型同步视频。工作流使用8位量化版ltx2.3模型,显存需求降低...

windows电脑C盘垃圾查找清理软件

电脑用了好几年了,尽管我安装软件从来不主动装到C盘,偶尔也会清理垃圾,但是用的久了,容量也是在慢慢减少。我C盘303G,现在就剩了24G了,已经会影响到系统性能和虚拟内存调度了,已经不能不管了。C盘不装软件的话大多都是缓存,文件太多了,有时...

Mineru PDF转markdown软件局域网版

对于有的电脑配置比较低或是win7系统等电脑无法使用Mineru情况,可以使用局域网内可运行软件的电脑运行Mineru,然后其它电脑或手机等终端输入IP地址,打开运行软件的IP地址来使用Mineru。 具体用法: 下载局域网版压缩包到本地电...

觉得文章对你有帮助就打赏一下作者

非常感谢你的打赏,我将有更多的动力继续提供优质内容,让我们一起创建更加美好的世界!

支付宝扫一扫

微信扫一扫