Try   HackMD

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

右上角綠色三角形運行 左側面板可全部刪掉

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

在 PyCharm Interpreter 將所有其他的環境刪除

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

添加運行時的Python Interpreter

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

venv是可以創造每個專案的虛擬環境,可以隔離不同套件

手動添加內建的python3位置(/usr/bin/python3)

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →