国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

安裝tiny-cuda-nn時(shí)報(bào)錯(cuò)RuntimeError: Could not locate a supported Microsoft Visual C++ installation

這篇具有很好參考價(jià)值的文章主要介紹了安裝tiny-cuda-nn時(shí)報(bào)錯(cuò)RuntimeError: Could not locate a supported Microsoft Visual C++ installation。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

問題描述

按照官方教程安裝nerf studio,運(yùn)行命令pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch安裝tiny-cuda-nn時(shí),出現(xiàn)以下報(bào)錯(cuò):

× python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\Lenovo\AppData\Local\Temp\pip-req-build-lz_n7l05\bindings/torch\setup.py", line 53, in <module>
          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 86 from PyTorch
      [end of output]

根據(jù)報(bào)錯(cuò),出現(xiàn)問題的原因是找不到Visual C++編譯器的位置。

解決方法

參考鏈接:https://github.com/NVlabs/nvdiffrec/issues/35

Step1: 安裝VS2019(已安裝可跳過)

下載Visual Studio Installer

Visual Studio2019下載鏈接:https://visualstudio.microsoft.com/zh-hans/vs/older-downloads/
安裝tiny-cuda-nn時(shí)報(bào)錯(cuò)RuntimeError: Could not locate a supported Microsoft Visual C++ installation
本人選擇的是免費(fèi)的Community版本:
安裝tiny-cuda-nn時(shí)報(bào)錯(cuò)RuntimeError: Could not locate a supported Microsoft Visual C++ installation
勾選使用C++的桌面開發(fā):
安裝tiny-cuda-nn時(shí)報(bào)錯(cuò)RuntimeError: Could not locate a supported Microsoft Visual C++ installation

注意:如果安裝的VS不是2017-2019版本,會(huì)出現(xiàn)以下報(bào)錯(cuò):
安裝tiny-cuda-nn時(shí)報(bào)錯(cuò)RuntimeError: Could not locate a supported Microsoft Visual C++ installation

Step2: 添加環(huán)境變量

右鍵此電腦->屬性->高級(jí)系統(tǒng)設(shè)置->高級(jí)->環(huán)境變量
安裝tiny-cuda-nn時(shí)報(bào)錯(cuò)RuntimeError: Could not locate a supported Microsoft Visual C++ installation
在系統(tǒng)變量Path中添加:G:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64 (按照自己的VS安裝路徑,我的安裝路徑是G:\Program Files (x86)\Microsoft Visual Studio)
安裝tiny-cuda-nn時(shí)報(bào)錯(cuò)RuntimeError: Could not locate a supported Microsoft Visual C++ installation
安裝tiny-cuda-nn時(shí)報(bào)錯(cuò)RuntimeError: Could not locate a supported Microsoft Visual C++ installation文章來源地址http://www.zghlxwxcb.cn/news/detail-424588.html

到了這里,關(guān)于安裝tiny-cuda-nn時(shí)報(bào)錯(cuò)RuntimeError: Could not locate a supported Microsoft Visual C++ installation的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • RuntimeError: CUDA error: CUBLAS_STATUS_NOT_INITIALIZED when calling `cublas‘

    調(diào)用nn.linear時(shí)出現(xiàn)RuntimeError: CUDA error: CUBLAS_STATUS_NOT_INITIALIZED when calling `cublas’錯(cuò)誤 ,搜索網(wǎng)上資料,主要指出以下原因: batch size太大(本人將batchsize設(shè)置成4,夠小吧!還是不行。。。) CUDA版本和torch不匹配(本人cuda版本是10.1,pytorch版本安裝的是cuda10.1+python3.8的pytorch1.

    2023年04月08日
    瀏覽(18)
  • RuntimeError: CUDA error: CUBLAS_STATUS_NOT_INITIALIZED when calling `cublasCreate(handle)`

    DialoGPT/data_loader.py at 457835e7d8acd08acf7f6f0e980f36fd327ea37c · microsoft/DialoGPT · GitHub 報(bào)錯(cuò):RuntimeError: CUDA error: CUBLAS_STATUS_NOT_INITIALIZED when calling `cublasCreate(handle)` 我把輸入用同樣形狀的隨機(jī)張量進(jìn)行了測試,發(fā)現(xiàn)用隨機(jī)的整數(shù)張量可以,但是用我的輸入就不行,于是想看看兩者的區(qū)別

    2024年02月11日
    瀏覽(20)
  • 解決npm install時(shí)報(bào)錯(cuò)Could not resolve dependency

    最近在新的項(xiàng)目使用npm install時(shí)發(fā)現(xiàn)報(bào)錯(cuò): npm WARN cli npm v9.6.4 does not support Node.js v15.14.0. This version of npm supports the following node versions: `^14.17.0 || ^16.13.0 || =18.0.0`. You can find the latest version at https://nodejs.org/. npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR!? npm ERR! While resolving:

    2024年02月08日
    瀏覽(25)
  • Docker【部署 07】鏡像內(nèi)安裝tensorflow-gpu及調(diào)用GPU多個(gè)問題處理Could not find cuda drivers+unable to find libcuda.so...

    Other than the name, the two packages have been identical since TensorFlow 2.1 也就是說安裝2.1版本的已經(jīng)自帶GPU支持。 不同型號(hào)的GPU及驅(qū)動(dòng)版本有所區(qū)別,環(huán)境驅(qū)動(dòng)及CUDA版本如下: 在Docker容器中的程序無法識(shí)別CUDA環(huán)境變量,可以嘗試以下步驟來解決這個(gè)問題: 檢查CUDA版本:首先,需要確認(rèn)

    2024年02月04日
    瀏覽(18)
  • idea的maven多模塊項(xiàng)目啟動(dòng)時(shí)報(bào)錯(cuò):Could not find artifact或者錯(cuò)誤找不到符號(hào)

    idea的maven多模塊項(xiàng)目啟動(dòng)時(shí)報(bào)錯(cuò):Could not find artifact或者錯(cuò)誤找不到符號(hào)

    1、問題描述: 多個(gè)項(xiàng)目中遇到idea的多模塊maven項(xiàng)目,在啟動(dòng)的時(shí)候會(huì)報(bào)錯(cuò): 【Could not find artifact,找不到包】 或者 【錯(cuò)誤:找不到符號(hào)(但明明代碼不報(bào)紅)】 但是在別人的idea上卻能正常啟動(dòng)。 2、解決方法: (1)原因說明: 后來發(fā)現(xiàn),項(xiàng)目啟動(dòng)時(shí),idea會(huì)自動(dòng)調(diào)用mav

    2024年02月17日
    瀏覽(24)
  • npm 執(zhí)行命令時(shí)報(bào)錯(cuò)npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve

    npm 執(zhí)行命令時(shí)報(bào)錯(cuò)npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve

    npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @vue-office/docx@1.3.0 npm ERR! Found: vue-demi@0.14.6 npm ERR! node_modules/vue-demi npm ERR! vue-demi@“^0.14.6” from the root project npm ERR! vue-demi@“*” from @vueuse/core@9.13.0 npm ERR! node_modules/@vueuse/core npm ERR! @vueuse/core@“^9.1.0” from

    2024年02月07日
    瀏覽(97)
  • NotImplementedError: Could not run ‘torchvision::nms‘ with arguments from the ‘CUDA‘ backend.

    NotImplementedError: Could not run ‘torchvision::nms‘ with arguments from the ‘CUDA‘ backend.

    問題描述:在跑YOLOV5S代碼時(shí),出現(xiàn)了下面這個(gè)錯(cuò)誤。 原因分析:網(wǎng)上說的是cuda的版本和torch的版本不對(duì)應(yīng)。但是自己明明是在pytorch的官網(wǎng)上下載的呀,并且自己的電腦上的cuda版本是11.8,但是pytorch官網(wǎng)上的cuda的最高版本是11.7,我復(fù)制里面的命令安裝的,但是運(yùn)行還是出現(xiàn)

    2024年02月16日
    瀏覽(26)
  • 記錄一次老服務(wù)器啟動(dòng)ActiveMq時(shí)報(bào)的Could not create the Java Virtual Machine.錯(cuò)誤

    記錄一次老服務(wù)器啟動(dòng)ActiveMq時(shí)報(bào)的Could not create the Java Virtual Machine.錯(cuò)誤

    服務(wù)器系統(tǒng)CentOS7? 1、出現(xiàn)ActiveMq服務(wù)無法連接 2、查看activemq狀態(tài) service activemq status 顯示activemq not running 3、找到ActiveMq的bin目錄,# 后臺(tái)啟動(dòng) ./activemq console 提示Could not create the Java Virtual Machine.錯(cuò)誤 可以判斷是java運(yùn)行環(huán)境的問題 4、再看看java版本 java -version 5、再看看activemq版

    2024年04月22日
    瀏覽(38)
  • Opencv cuda版本在ubuntu22.04中安裝辦法,解決Could NOT find CUDNN的辦法

    Opencv cuda版本在ubuntu22.04中安裝辦法,解決Could NOT find CUDNN的辦法

    解決以下安裝問題: 連接地址: https://developer.nvidia.com/cuda-downloads?target_os=Linuxtarget_arch=x86_64Distribution=Ubuntutarget_version=22.04target_type=runfile_local 注意,請(qǐng)下載對(duì)應(yīng)驅(qū)動(dòng)的版本。 默認(rèn)驅(qū)動(dòng)和 cuda toolkit都會(huì)安裝成功! 官網(wǎng)下載cuda對(duì)應(yīng)版本的cudnn: https://developer.nvidia.com/rdp/cudnn-arch

    2024年02月03日
    瀏覽(29)
  • 使用npx electron-forge import命令時(shí)報(bào)錯(cuò)Could not find git in environment的解決方法

    使用npx electron-forge import命令時(shí)報(bào)錯(cuò)Could not find git in environment的解決方法

    準(zhǔn)備使用Electron Forge?打包項(xiàng)目文件時(shí)(打包您的應(yīng)用程序 | Electron)可能會(huì)遇到以下錯(cuò)誤: ?解決方法:在git的官網(wǎng)(Git for Windows)上下載安裝git,然后在git bash的窗體中運(yùn)行命令即可。 (git的官網(wǎng)) ?git下載安裝完成后會(huì)自動(dòng)啟動(dòng)git bash,在其中輸入并執(zhí)行命令npx electron

    2024年02月06日
    瀏覽(74)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包