Ubuntu/Mac 深度学习开发基本环境配置

0 环境依赖

Ubuntu 依赖库:
1)zsh:
安装:

2)git:
安装:

Mac 依赖库:
1)Homebrew:
安装:

1 安装 Oh My Zsh

网站介绍:https://ohmyz.sh/
Ubuntu 运行命令:

Mac 运行命令:

2 安装 TMUX

详细介绍:Tmux 虚拟终端使用
Ubuntu 运行命令:

Mac 运行命令:

3 安装 Anaconda

下载 Anaconda 个人版:https://www.anaconda.com/products/individual-d

Ubuntu 下载后运行:

Mac 下载后直接安装图形程序:Anaconda3-2021.11-MacOSX-x86_64.pkg

4 安装 PyTorch

Ubuntu 运行命令(如果有 CUDA):

Mac 运行命令:

5 安装 OpenCV

运行如下命令:

6 安装 Matplotlib

运行如下命令:

7 安装 tqdm

运行如下命令:

8 安装 scipy

运行如下命令:

常见错误

1)Mac 上出现:Python MacOS Error: Unable to revert mtime: /Library/Fonts
如果在 Mac 运行 Python 时出现如下错误:

可以运行:

参考:https://stackoverflow.com/questions/62279920/python-macos-error-unable-to-revert-mtime-library-fonts

Add a Comment

您的电子邮箱地址不会被公开。 必填项已用*标注