繁体   English   中英

Django web azure 部署失败

[英]Django web Deployment Failed on azure

10:47:19 AM django-face-restore: ERROR: Could not find a version that satisfies the requirement torch==TORCH_VERSION+cpu (from versions: 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.11.0)
10:47:19 AM django-face-restore: ERROR: No matching distribution found for torch==TORCH_VERSION+cpu
10:47:19 AM django-face-restore: WARNING: You are using pip version 21.1.1; however, version 22.0.4 is available.
10:47:19 AM django-face-restore: You should consider upgrading via the '/tmp/8da12d59fc3e034/antenv/bin/python -m pip install --upgrade pip' command.
10:47:19 AM django-face-restore: "2022-03-31 07:00:00"|ERROR|Failed pip installation with exit code: 1
10:47:21 AM django-face-restore: /opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.8 -i /tmp/8da12d59fc3e034 --compress-destination-dir -p virtualenv_name=antenv --log-file /tmp/build-debug.log 
10:47:21 AM django-face-restore: Deployment Failed

要解决此ERROR: No matching distribution found for torch==TORCH_VERSION+cpu错误:

您需要安装特定版本的torch ,尝试以下方式之一:

将以下内容添加到您的requirements.txt文件中:

--find-links https://download.pytorch.org/whl/torch_stable.html

torch==1.7.0+cpu

或者

python -m pip install torch==1.7.0 -f https://download.pytorch.org/whl/torch_stable.html

或者

python3.8 -m pip install torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html

参考: Install PyTorch from requirements.txt , ERROR: Could not find a version that satisfy the requirement torch==1.7.0+cpu , Could not find a version that satisfy the requirement torch==1.3.1

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM