Env Config
1 Dev Config
1.1 Terminal Theme
Powerlevel10k
Github: https://github.com/romkatv/powerlevel10k
VSCode Issue fix: https://github.com/romkatv/powerlevel10k/issues/671
1.2 VSCode Extensions
Pyaudio
pyaudio官网地址:http://people.csail.mit.edu/hubert/pyaudio/
如下图,官方指出,对于MacOS而言,安装pyaudio分为四步:1.安装Homebrew --> 2.安装wget --> 3.安装portaudio --> 4.安装pyaudio
步骤一:安装Homebrew
方法一:官网链接:https://brew.sh/
在“终端”执行命令行:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
方法二:
在“终端”执行命令行:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
步骤二:安装wget
在“终端”执行命令行:
brew install wget
步骤三:安装portaudio
在“终端”执行命令行:
brew install portaudio
步骤四:安装pyaudio
在“终端”执行命令行:
pip install pyaudio
此时会出现报错,再次在“终端”执行命令行:
python -m pip install --global-option='build_ext' --global-option='-I/opt/homebrew/Cellar/portaudio/19.7.0/include' --global-option='-L/opt/homebrew/Cellar/portaudio/19.7.0/lib' pyaudio
成功安装!
MySQL
1. try to call MySQL
forhheart@ForHHeartdeMacBook-Air ~ % mysql -u root -p
zsh: command not found: mysql
2. check your current path
forhheart@ForHHeartdeMacBook-Air ~ % echo $PATH
3. open the text file
forhheart@ForHHeartdeMacBook-Air ~ % vi .zshrc
4. add your mysql path into the text file, starting a new line
export PATH=${PATH}:/usr/local/mysql/bin
press ESC
key, then :wq
quit terminal, then open terminal
5. recall MySQL
forhheart@ForHHeartdeMacBook-Air ~ % mysql -u root -p