当前位置:   article > 正文

Mac下Pytorch环境搭建_mac pytorch

mac pytorch

panaconda安装

https://www.anaconda.com/download/success

pytorch安装

https://pytorch.org/get-started/locally/#macos-version

支持conda和pip安装方式

Anaconda安装:

  1. conda install pytorch torchvision -c pytorch
  2. Channels:
  3. - pytorch
  4. - defaults
  5. Platform: osx-64
  6. Collecting package metadata (repodata.json): done
  7. Solving environment: done
  8. ## Package Plan ##
  9. environment location: /opt/anaconda3
  10. added / updated specs:
  11. - pytorch
  12. - torchvision
  13. The following packages will be downloaded:
  14. package | build
  15. ---------------------------|-----------------
  16. jsonpatch-1.33 | py311hecd8cb5_0 37 KB
  17. libuv-1.44.2 | h6c40b1e_0 388 KB
  18. ninja-1.10.2 | hecd8cb5_5 9 KB
  19. ninja-base-1.10.2 | haf03e11_5 118 KB
  20. packaging-23.2 | py311hecd8cb5_0 174 KB
  21. pytorch-1.13.1 |cpu_py311h9e40b02_0 50.1 MB
  22. torchvision-0.15.2 |cpu_py311h5c52452_0 10.0 MB
  23. ------------------------------------------------------------
  24. Total: 60.8 MB
  25. The following NEW packages will be INSTALLED:
  26. jsonpatch pkgs/main/osx-64::jsonpatch-1.33-py311hecd8cb5_0
  27. libuv pkgs/main/osx-64::libuv-1.44.2-h6c40b1e_0
  28. ninja pkgs/main/osx-64::ninja-1.10.2-hecd8cb5_5
  29. ninja-base pkgs/main/osx-64::ninja-base-1.10.2-haf03e11_5
  30. packaging pkgs/main/osx-64::packaging-23.2-py311hecd8cb5_0
  31. pytorch pkgs/main/osx-64::pytorch-1.13.1-cpu_py311h9e40b02_0
  32. torchvision pkgs/main/osx-64::torchvision-0.15.2-cpu_py311h5c52452_0
  33. Proceed ([y]/n)?

pip方式安装:

  1. # Python 3.x
  2. pip3 install torch torchvision

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/896585
推荐阅读
相关标签
  

闽ICP备14008679号