简体   繁体   中英

Installing PyTorch on MacOS Big Sur

I am trying to figure out how to go about installing PyTorch on my computer which is a macOS Big Sur laptop (version 11.6.2). So far, I have installed Python 3.10.1 via the Python website, and pip 21.3.1 was installed along with it. At the moment, I'm stuck trying to figure out how to install PyTorch using pip?

I'm asking this question because I am partaking in a project that requires PyTorch and I need to install it as soon as possible.

pip3 install torch torchvision torchaudio

This command worked fine for me, you can find more information on the official website here

There are (currently) no whl files available for python 3.10 on pypi , so the command

pip3 install torch torchvision torchaudio

won't work for you right now. Since you have only installed python now for this project, I would recommend that you simply uninstall python 3.10 and then download and install python 3.9.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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