This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 关闭 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 (如需重新安装先卸载) |