|
本帖最后由 superwax 于 2023-3-17 07:16 编辑
正在创建虚拟环境...
安装程序所需依赖 (已进行国内加速,若无法使用加速源请用 install.ps1)...
Looking in links: https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html
Collecting torch==1.12.1+cu116
Using cached https://mirror.sjtu.edu.cn/pytor ... cp310-win_amd64.whl (2388.4 MB)
Collecting torchvision==0.13.1+cu116
Using cached https://mirror.sjtu.edu.cn/pytor ... cp310-win_amd64.whl (2.6 MB)
Collecting typing-extensions
Using cached typing_extensions-4.5.0-py3-none-any.whl (27 kB)
Collecting requests
Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting numpy
Using cached numpy-1.24.2-cp310-cp310-win_amd64.whl (14.8 MB)
Collecting pillow!=8.3.*,>=5.3.0
Using cached Pillow-9.4.0-cp310-cp310-win_amd64.whl (2.5 MB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
Collecting charset-normalizer<4,>=2
Using cached charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl (97 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
Collecting idna<4,>=2.5
Using cached idna-3.4-py3-none-any.whl (61 kB)
Installing collected packages: urllib3, typing-extensions, pillow, numpy, idna, charset-normalizer, certifi, torch, requests, torchvision
ERROR: Exception:
Traceback (most recent call last):
File "F:\lora train\lora-scripts\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "F:\lora train\lora-scripts\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "F:\lora train\lora-scripts\venv\lib\site-packages\pip\_internal\commands\install.py", line 461, in run
installed = install_given_reqs(
File "F:\lora train\lora-scripts\venv\lib\site-packages\pip\_internal\req\__init__.py", line 73, in install_given_reqs
requirement.install(
File "F:\lora train\lora-scripts\venv\lib\site-packages\pip\_internal\req\req_install.py", line 790, in install
install_wheel(
File "F:\lora train\lora-scripts\venv\lib\site-packages\pip\_internal\operations\install\wheel.py", line 727, in install_wheel
_install_wheel(
File "F:\lora train\lora-scripts\venv\lib\site-packages\pip\_internal\operations\install\wheel.py", line 587, in _install_wheel
file.save()
File "F:\lora train\lora-scripts\venv\lib\site-packages\pip\_internal\operations\install\wheel.py", line 388, in save
shutil.copyfileobj(f, dest)
File "C:\Users\KING\AppData\Local\Programs\Python\Python310\lib\shutil.py", line 195, in copyfileobj
buf = fsrc_read(length)
File "C:\Users\KING\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 925, in read
data = self._read1(n)
File "C:\Users\KING\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1015, in _read1
self._update_crc(data)
File "C:\Users\KING\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 943, in _update_crc
raise BadZipFile("Bad CRC-32 for file %r" % self.name)
zipfile.BadZipFile: Bad CRC-32 for file 'torch/lib/cudnn_ops_train64_8.dll'
[notice] A new release of pip available: 22.2.2 -> 23.0.1
[notice] To update, run: python.exe -m pip install --upgrade pip
torch 安装失败,请删除 venv 文件夹后重新运行。
安装失败。
CMD运行
Microsoft Windows [版本 10.0.19044.2728]
(c) Microsoft Corporation。保留所有权利。
C:\Windows\system32>python.exe -m pip install --upgrade pip
Requirement already satisfied: pip in c:\users\king\appdata\local\programs\python\python310\lib\site-packages (23.0.1)
但是回到前面安装还是一样的提示。。。
|
|