当前位置: 首页> 汽车> 维修 > 个人网站备案需要几天_沈阳建设工程信息网站_如何快速优化网站排名_如何去推广自己的产品

个人网站备案需要几天_沈阳建设工程信息网站_如何快速优化网站排名_如何去推广自己的产品

时间:2025/7/13 3:36:21来源:https://blog.csdn.net/fyf2007/article/details/142406631 浏览次数: 0次
个人网站备案需要几天_沈阳建设工程信息网站_如何快速优化网站排名_如何去推广自己的产品

MAC笔记安装Pytorch 环境安装

在这里插入图片描述

1. 安装brew

方法1 参考: https://www.jianshu.com/p/e0471aa6672d?utm_campaign=hugo

使用中科大镜像加速访问:

/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"

参考: https://zhuanlan.zhihu.com/p/90508170
实测执行如下代码:

(base) MacBook-Pro:resume yinfufeng$ /bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"

设置清华源:

git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.gitgit -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.gitgit -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.gitbrew update

2. 安装Anaconda

[1] 添加Anaconda的TUNA镜像

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

[2]设置搜索时显示通道地址

conda config --set show_channel_urls yes

[3] 安装anaconda

curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
sh Miniconda3-latest-MacOSX-x86_64.sh

##3. 安装pytortch
1)设置Python版本为3.9版本,创建pytorch环境

(base) MacBook-Pro:DeepLab fyf$ conda create -n pytorch_py39_env python=3.9

2)安装pytorch包
参考 https://pytorch.org/get-started/locally/

  • [1] 激活环境
(base) MacBook-Pro:DeepLab fyf$ conda activate pytorch_py39_env
(pytorch_py39_env) MacBook-Pro:DeepLab yinfufeng$
  • [2]安装依赖数据包
conda install pytorch torchvision torchaudio -c pytorch
  • [3] 退出环境:
$ conda deactivate
  1. notebook
    安装jupyter notebook后,执行命令:
jupyter notebook

参考资料

[1] Anaconda documentation
https://docs.anaconda.com/anaconda/user-guide/tasks/tensorflow/

[2] https://www.jianshu.com/p/d54546ab315e

关键字:个人网站备案需要几天_沈阳建设工程信息网站_如何快速优化网站排名_如何去推广自己的产品

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: