区块链技术博客
www.b2bchain.cn

Mac 机器学习环境 (TensorFlow, JupyterLab, VSCode)求职学习资料

本文介绍了Mac 机器学习环境 (TensorFlow, JupyterLab, VSCode)求职学习资料,有助于帮助完成毕业设计以及求职,是一篇很好的资料。

对技术面试,学习经验等有一些体会,在此分享。

  • Conda
    • Anaconda
    • Miniconda
  • 创建虚拟环境
  • 安装 TensorFlow
    • 检查
  • 安装 JupyterLab
    • 启动
  • 安装其他依赖
  • JupyterLab 运行 TensorFlow
  • 安装 VSCode
  • VSCode 运行 TensorFlow
  • 小结

Mac M1 机器学习环境 讲述了如何在 M1 芯片的 Mac 搭建深度学习环境。考虑到还有其他同学是普通的 Mac 电脑,本文讲解如何在普通 Mac 电脑上安装机器学习环境。

Conda

Conda 是一个与语言无关的跨平台二进制软件包管理器。它是 Anaconda 安装所使用的程序包管理器,但也可以用于其他系统。

这里可以选择 Anaconda 或者使用仅包含 conda 及其依赖项的Miniconda。

注:更推荐使用轻量级的 Miniconda。因为对于初学者来说,Conda 大部分是用来创建虚拟环境的,Anaconda 功能丰富但是在这里就显得大材小用,并且安装包占用空间大。

Anaconda

如果选择 Anaconda,前往官网下载并安装 Anaconda 即可。

Mac 机器学习环境 (TensorFlow, JupyterLab, VSCode)

Miniconda

Miniconda 提供了多种安装形式,可以到官网下载并根据提示安装即可。下面以 bash 形式安装为例

❯ bash Miniconda3-latest-MacOSX-x86_64.sh  Welcome to Miniconda3 py38_4.9.2  In order to continue the installation process, please review the license agreement. Please, press ENTER to continue ...... Miniconda3 will now be installed into this location: /Users/catchzeng/miniconda3    - Press ENTER to confirm the location   - Press CTRL-C to abort the installation   - Or specify a different location below  [/Users/catchzeng/miniconda3] >>> PREFIX=/Users/catchzeng/miniconda3 Unpacking payload ... Collecting package metadata (current_repodata.json): done Solving environment: done ...... Do you wish the installer to initialize Miniconda3 by running conda init? [yes|no] [yes] >>> yes no change     /Users/catchzeng/miniconda3/condabin/conda no change     /Users/catchzeng/miniconda3/bin/conda no change     /Users/catchzeng/miniconda3/bin/conda-env no change     /Users/catchzeng/miniconda3/bin/activate no change     /Users/catchzeng/miniconda3/bin/deactivate no change     /Users/catchzeng/miniconda3/etc/profile.d/conda.sh no change     /Users/catchzeng/miniconda3/etc/fish/conf.d/conda.fish no change     /Users/catchzeng/miniconda3/shell/condabin/Conda.psm1 no change     /Users/catchzeng/miniconda3/shell/condabin/conda-hook.ps1 no change     /Users/catchzeng/miniconda3/lib/python3.8/site-packages/xontrib/conda.xsh no change     /Users/catchzeng/miniconda3/etc/profile.d/conda.csh modified      /Users/catchzeng/.zshrc  ==> For changes to take effect, close and re-open your current shell. <==  If you'd prefer that conda's base environment not be activated on startup,    set the auto_activate_base parameter to false:  conda config --set auto_activate_base false  Thank you for installing Miniconda3!

创建虚拟环境

创建 tensorflow 虚拟环境

“`zsh

  • Conda
    • Anaconda
    • Miniconda
  • 创建虚拟环境
  • 安装 TensorFlow
    • 检查
  • 安装 JupyterLab
    • 启动
  • 安装其他依赖
  • JupyterLab 运行 TensorFlow
  • 安装 VSCode
  • VSCode 运行 TensorFlow
  • 小结

Mac M1 机器学习环境 讲述了如何在 M1 芯片的 Mac 搭建深度学习环境。考虑到还有其他同学是普通的 Mac 电脑,本文讲解如何在普通 Mac 电脑上安装机器学习环境。

Conda

Conda 是一个与语言无关的跨平台二进制软件包管理器。它是 Anaconda 安装所使用的程序包管理器,但也可以用于其他系统。

这里可以选择 Anaconda 或者使用仅包含 conda 及其依赖项的Miniconda。

注:更推荐使用轻量级的 Miniconda。因为对于初学者来说,Conda 大部分是用来创建虚拟环境的,Anaconda 功能丰富但是在这里就显得大材小用,并且安装包占用空间大。

Anaconda

如果选择 Anaconda,前往官网下载并安装 Anaconda 即可。

Mac 机器学习环境 (TensorFlow, JupyterLab, VSCode)

Miniconda

Miniconda 提供了多种安装形式,可以到官网下载并根据提示安装即可。下面以 bash 形式安装为例

❯ bash Miniconda3-latest-MacOSX-x86_64.sh  Welcome to Miniconda3 py38_4.9.2  In order to continue the installation process, please review the license agreement. Please, press ENTER to continue ...... Miniconda3 will now be installed into this location: /Users/catchzeng/miniconda3    - Press ENTER to confirm the location   - Press CTRL-C to abort the installation   - Or specify a different location below  [/Users/catchzeng/miniconda3] >>> PREFIX=/Users/catchzeng/miniconda3 Unpacking payload ... Collecting package metadata (current_repodata.json): done Solving environment: done ...... Do you wish the installer to initialize Miniconda3 by running conda init? [yes|no] [yes] >>> yes no change     /Users/catchzeng/miniconda3/condabin/conda no change     /Users/catchzeng/miniconda3/bin/conda no change     /Users/catchzeng/miniconda3/bin/conda-env no change     /Users/catchzeng/miniconda3/bin/activate no change     /Users/catchzeng/miniconda3/bin/deactivate no change     /Users/catchzeng/miniconda3/etc/profile.d/conda.sh no change     /Users/catchzeng/miniconda3/etc/fish/conf.d/conda.fish no change     /Users/catchzeng/miniconda3/shell/condabin/Conda.psm1 no change     /Users/catchzeng/miniconda3/shell/condabin/conda-hook.ps1 no change     /Users/catchzeng/miniconda3/lib/python3.8/site-packages/xontrib/conda.xsh no change     /Users/catchzeng/miniconda3/etc/profile.d/conda.csh modified      /Users/catchzeng/.zshrc  ==> For changes to take effect, close and re-open your current shell. <==  If you'd prefer that conda's base environment not be activated on startup,    set the auto_activate_base parameter to false:  conda config --set auto_activate_base false  Thank you for installing Miniconda3!

创建虚拟环境

创建 tensorflow 虚拟环境

“`zsh

  • Conda
    • Anaconda
    • Miniconda
  • 创建虚拟环境
  • 安装 TensorFlow
    • 检查
  • 安装 JupyterLab
    • 启动
  • 安装其他依赖
  • JupyterLab 运行 TensorFlow
  • 安装 VSCode
  • VSCode 运行 TensorFlow
  • 小结

Mac M1 机器学习环境 讲述了如何在 M1 芯片的 Mac 搭建深度学习环境。考虑到还有其他同学是普通的 Mac 电脑,本文讲解如何在普通 Mac 电脑上安装机器学习环境。

Conda

Conda 是一个与语言无关的跨平台二进制软件包管理器。它是 Anaconda 安装所使用的程序包管理器,但也可以用于其他系统。

这里可以选择 Anaconda 或者使用仅包含 conda 及其依赖项的Miniconda。

注:更推荐使用轻量级的 Miniconda。因为对于初学者来说,Conda 大部分是用来创建虚拟环境的,Anaconda 功能丰富但是在这里就显得大材小用,并且安装包占用空间大。

Anaconda

如果选择 Anaconda,前往官网下载并安装 Anaconda 即可。

Mac 机器学习环境 (TensorFlow, JupyterLab, VSCode)

Miniconda

Miniconda 提供了多种安装形式,可以到官网下载并根据提示安装即可。下面以 bash 形式安装为例

❯ bash Miniconda3-latest-MacOSX-x86_64.sh  Welcome to Miniconda3 py38_4.9.2  In order to continue the installation process, please review the license agreement. Please, press ENTER to continue ...... Miniconda3 will now be installed into this location: /Users/catchzeng/miniconda3    - Press ENTER to confirm the location   - Press CTRL-C to abort the installation   - Or specify a different location below  [/Users/catchzeng/miniconda3] >>> PREFIX=/Users/catchzeng/miniconda3 Unpacking payload ... Collecting package metadata (current_repodata.json): done Solving environment: done ...... Do you wish the installer to initialize Miniconda3 by running conda init? [yes|no] [yes] >>> yes no change     /Users/catchzeng/miniconda3/condabin/conda no change     /Users/catchzeng/miniconda3/bin/conda no change     /Users/catchzeng/miniconda3/bin/conda-env no change     /Users/catchzeng/miniconda3/bin/activate no change     /Users/catchzeng/miniconda3/bin/deactivate no change     /Users/catchzeng/miniconda3/etc/profile.d/conda.sh no change     /Users/catchzeng/miniconda3/etc/fish/conf.d/conda.fish no change     /Users/catchzeng/miniconda3/shell/condabin/Conda.psm1 no change     /Users/catchzeng/miniconda3/shell/condabin/conda-hook.ps1 no change     /Users/catchzeng/miniconda3/lib/python3.8/site-packages/xontrib/conda.xsh no change     /Users/catchzeng/miniconda3/etc/profile.d/conda.csh modified      /Users/catchzeng/.zshrc  ==> For changes to take effect, close and re-open your current shell. <==  If you'd prefer that conda's base environment not be activated on startup,    set the auto_activate_base parameter to false:  conda config --set auto_activate_base false  Thank you for installing Miniconda3!

创建虚拟环境

创建 tensorflow 虚拟环境

“`zsh

部分转自互联网,侵权删除联系

赞(0) 打赏
部分文章转自网络,侵权联系删除b2bchain区块链学习技术社区 » Mac 机器学习环境 (TensorFlow, JupyterLab, VSCode)求职学习资料
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

b2b链

联系我们联系我们