安装Animalib时如何指定具体的pytorch版本 #2653
Unanswered
1813574898
asked this question in
Q&A
Replies: 1 comment
-
已解决。anomalib==2.0.0对torch的版本有要求。经过测试,只有torch的版本大于2.0才行,即使是2.0.1也不行。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我的环境:Windows10专业版,使用conda创建的虚拟环境。
问题描述:
我在执行
pip install anomalib[full]
之前,先安装了期望的pytorch版本:
pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu118
或者
conda install pytorch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 pytorch-cuda=11.8 -c pytorch -c nvidia
。安装成功后,使用conda list torch已经能够查看到安装成功。
但是,我执行
pip install anomalib[full]
,发现依旧会自动下载最新版本的torch。请问如何解决这个问题呢,我期望指定具体的torch版本,而不是最新的torch版本。
希望能得到大家的帮助,非常感谢~
Beta Was this translation helpful? Give feedback.
All reactions