Skip to content

Instantly share code, notes, and snippets.

@mekefly
Last active October 18, 2022 11:26
Show Gist options
  • Save mekefly/7ec50a3888375b218765834e83e8d9c5 to your computer and use it in GitHub Desktop.
Save mekefly/7ec50a3888375b218765834e83e8d9c5 to your computer and use it in GitHub Desktop.
2210181712.md

🧲 相关:

#100-项目 [[novelAi]] [[novelAi本地安装]]

🗓️ 创建日期: [[2022-10-18#17:12]]


打开那个文件后出现了以下报错

venv "R:\Collection\Software\novelai-webui-10-9update\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep  5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Commit hash: 050a6a798cec90ae2f881c2ddd3f0221e69907dc
Installing torch and torchvision
Traceback (most recent call last):
  File "R:\Collection\Software\novelai-webui-10-9update\launch.py", line 118, in <module>
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch")
  File "R:\Collection\Software\novelai-webui-10-9update\launch.py", line 56, in run
    raise RuntimeError(message)
RuntimeError: Couldn't install torch.
Command: "R:\Collection\Software\novelai-webui-10-9update\venv\Scripts\python.exe" -m pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
Error code: 1
stdout: Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple, https://download.pytorch.org/whl/cu113
Collecting torch==1.12.1+cu113
  Downloading https://download.pytorch.org/whl/cu113/torch-1.12.1%2Bcu113-cp310-cp310-win_amd64.whl (2143.8 MB)
     --------------                           0.8/2.1 GB 7.4 MB/s eta 0:03:07

stderr: ERROR: Wheel 'torch' located at C:\Users\meke\AppData\Local\Temp\pip-unpack-qlpsjdiz\torch-1.12.1+cu113-cp310-cp310-win_amd64.whl is invalid.


请按任意键继续. . .

原图

我没学过python所以也看不懂这个,不知道是简单问题吗

解决失败但是使用另一包安装成功


好吧我用up主的解压就用的免安装包,给安装成功了,谢谢up主,你是我们的光,已三连
up的视频地址

@mekefly
Copy link
Author

mekefly commented Oct 18, 2022

每到0.8就报错,我执行了一下 "R:\Collection\Software\novelai-webui-10-9update\venv\Scripts\python.exe" -m pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113 发现就是这行报错的,下载到0.8的时候就报错了,我一个门外汉也想体验一下ai哈哈

@mekefly
Copy link
Author

mekefly commented Oct 18, 2022

好吧我用up主的解压就用的免安装包,给安装成功了,谢谢up主,你是我们的光,已三连
up的视频地址

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment