Error: Can't find Python executable "python", you can set the PYTHON env variable.
Unable to run python while running service in Intellij.
Running python should work on my mac.
On local mac python2 is no longer available from macOS Monterey by default.
In order to explicitly install python2 please follow the below steps:
brew install pyenv
pyenv install 2.7.18
echo 'export PATH="$(pyenv root)/versions/2.7.18/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.