Skip to content

Instantly share code, notes, and snippets.

-- Disable SIP (csrutil disable)
ref: https://github.com/pypa/virtualenv/issues/2023
-- Run SHELL as x86_64 mode
arch -x86_64 $SHELL
ref: https://sspai.com/post/63935
-- uninstall arm 64 brew (if needed)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
-- 关闭 SIP (csrutil disable)
重启M1电脑,按住开机键不放直到进入系统恢复模式,打开终端,输入 csrutil disable 回车,然后根据引导操作,并重启电脑
如果不关闭,python 命令无法在虚拟环境运行,症状为 zsh killed
ref: https://github.com/pypa/virtualenv/issues/2023
-- 以x86_64方式运行终端
arch -x86_64 $SHELL
ref: https://sspai.com/post/63935
-- 卸载 brew (如需重新安装先卸载)