I was facing this issue because I had created alias for python and python3 in .zshrc. Once I removed those I had no problems and the correct python path ( the .venv one ) was considered.