英文:
Python pip: how to install with version indicator and specified string?
问题
当我想要pip install torch>=1.13.0
并指定cpu
包时,我该怎么做?
英文:
Take PyTorch for example.
In its index page many different versions of a same release are showed:
- 2.0.0+cpu
- 2.0.0
- 2.0.0+cu117
- 2.0.0+cu118
- 2.0.0+rocm5.3
What should I do if I want to pip install torch>=1.13.0
and specify the cpu
package?
答案1
得分: 0
尝试这段代码:
pip install torch>=1.13.0+cpu -f 网址太长无法在此处写出
网址:https://download.pytorch.org/whl/torch/stable.html
英文:
Try this code
pip install torch>=1.13.0+cpu -f the url is too long to write here
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论