Stable Diffusion 安裝失敗 Couldn’t install torch. ErrorCode 2
Creating venv in directory C:\Users\AdminName\Documents\stable diffusion\stable-diffusion-webui\venv using python “C:\Program Files\Python310\python.exe”
venv “C:\Users\AdminName\Documents\stable diffusion\stable-diffusion-webui\venv\Scripts\Python.exe”
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.4.0
Commit hash: 394ffa7
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu118
Collecting torch==2.0.1
ERROR: Exception:
Traceback (most recent call last):
MemoryError
File “C:\Users\AdminName\Documents\stable diffusion\stable-diffusion-webui\modules\launch_utils.py”, line 107, in run
raise RuntimeError(“\n”.join(error_bits))
RuntimeError: Couldn’t install torch.
Command: “C:\Users\AdminName\Documents\stable diffusion\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install torch2.0.1 torchvision0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118
Error code: 2
提示 torch 安裝失敗了,并且是內(nèi)存相關(guān)的問(wèn)題TNND?。?!
本機(jī)16GB內(nèi)存,12G顯存我確認(rèn)不可能是內(nèi)存不夠的問(wèn)題,因?yàn)榱硗庖慌_(tái)舊機(jī)器10GB內(nèi)存 8G顯存都安裝成功運(yùn)行成功了!!
對(duì)比了一下舊機(jī)器,原來(lái)是虛擬內(nèi)存沒有設(shè)置?。?!
都不知道程序員是不是腦子進(jìn)水了,16GB內(nèi)存放在那不用非得要用虛擬內(nèi)存?。?!
系統(tǒng)->高級(jí)系統(tǒng)設(shè)置->高級(jí)->性能->設(shè)置->高級(jí)->虛擬內(nèi)存->設(shè)置個(gè)大于6GB(我設(shè)置了8GB)就可以了
重新設(shè)置虛擬內(nèi)存重啟安裝成功!??!文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-738550.html
折騰了兩天,真的很想罵人!?。?span toymoban-style="hidden">文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-738550.html
到了這里,關(guān)于Stable Diffusion 安裝失敗 Couldn‘t install torch. ErrorCode 2的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!