An another way to solve this problem: Add export PYTHONWARNINGS=ignore to your .zshrc
export PYTHONWARNINGS=ignore
.zshrc