安装所需版本 bash 1 brew install python@3.12 生成venv 在指定目录下运行 bash 1 python3.12 -m venv venv 目录下会生成venv文件夹 激活虚拟环境 MacOS|Linux bash 1 source venv/bin/activate Windows ...
Mac安装问题
授权未认证软件 终端内强制放行指定软件的命令如下: shell 1 sudo xattr -rd com.apple.quarantine /Applications/<XXX.app> 关闭 Gatekeeper(不推荐) shell 1 sudo spctl --master-disable 安装后打开提示损坏 shell 1 xattr -c /Applications/<XXX.app>