赞
踩
https://www.anaconda.com/download/success
pytorch安装
https://pytorch.org/get-started/locally/#macos-version
支持conda和pip安装方式
Anaconda安装:
- conda install pytorch torchvision -c pytorch
- Channels:
- - pytorch
- - defaults
- Platform: osx-64
- Collecting package metadata (repodata.json): done
- Solving environment: done
-
- ## Package Plan ##
-
- environment location: /opt/anaconda3
-
- added / updated specs:
- - pytorch
- - torchvision
-
-
- The following packages will be downloaded:
-
- package | build
- ---------------------------|-----------------
- jsonpatch-1.33 | py311hecd8cb5_0 37 KB
- libuv-1.44.2 | h6c40b1e_0 388 KB
- ninja-1.10.2 | hecd8cb5_5 9 KB
- ninja-base-1.10.2 | haf03e11_5 118 KB
- packaging-23.2 | py311hecd8cb5_0 174 KB
- pytorch-1.13.1 |cpu_py311h9e40b02_0 50.1 MB
- torchvision-0.15.2 |cpu_py311h5c52452_0 10.0 MB
- ------------------------------------------------------------
- Total: 60.8 MB
-
- The following NEW packages will be INSTALLED:
-
- jsonpatch pkgs/main/osx-64::jsonpatch-1.33-py311hecd8cb5_0
- libuv pkgs/main/osx-64::libuv-1.44.2-h6c40b1e_0
- ninja pkgs/main/osx-64::ninja-1.10.2-hecd8cb5_5
- ninja-base pkgs/main/osx-64::ninja-base-1.10.2-haf03e11_5
- packaging pkgs/main/osx-64::packaging-23.2-py311hecd8cb5_0
- pytorch pkgs/main/osx-64::pytorch-1.13.1-cpu_py311h9e40b02_0
- torchvision pkgs/main/osx-64::torchvision-0.15.2-cpu_py311h5c52452_0
-
-
- Proceed ([y]/n)?
pip方式安装:
- # Python 3.x
- pip3 install torch torchvision
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。