# PyCharm Python 環境設定 原本電腦中的設定有多個python macOS內建python3、有透過brew、IDLE、PyCharm安裝的 https://developer.apple.com/forums/thread/680222 後來全都都刪除 `/Library/Frameworks/Python.framework/Versions/3.9/bin/python3` `/usr/local/ bin/python3` `/usr/bin/python3` 僅留下內建的Python ## PyCharm Python Interpreter 右上角綠色三角形運行 左側面板可全部刪掉 ![](https://i.imgur.com/FpvQT2D.png) ![](https://i.imgur.com/1Ux6pQr.png) 在 PyCharm Interpreter 將所有其他的環境刪除 ![](https://i.imgur.com/CKylgtE.png) 添加運行時的Python Interpreter ![](https://i.imgur.com/3Gw58Nq.png) venv是可以創造每個專案的虛擬環境,可以隔離不同套件 手動添加內建的python3位置(/usr/bin/python3) ![](https://i.imgur.com/aJWZOLG.png)