Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install Pytorch CPU Only with pip that works on Apple machine as well as Linux

I'm getting install errors when I deploy a Flask app to Azure services. I've tracked the issue down to a pip install torch and likely being due to a CPU version.

I'm unable to find a way to install a CPU-only version of Pytorch that will install on both Macbook and Linux?

like image 280
Aus_10 Avatar asked Nov 17 '25 11:11

Aus_10


1 Answers

That works for me:

python -m pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
like image 79
roman_ka Avatar answered Nov 20 '25 00:11

roman_ka