Today We are Going To Solve How to fix “zsh: command not found: python” error? (macOS Monterey 12.3, python 3.10, Atom IDE, atom-python-run 0.9.7) in Python. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.
Contents
How to Fix “zsh: command not found: python” error? (macOS Monterey 12.3, python 3.10, Atom IDE, atom-python-run 0.9.7) Error?
- How to Fix “zsh: command not found: python” error? (macOS Monterey 12.3, python 3.10, Atom IDE, atom-python-run 0.9.7) Error?
To Fix “zsh: command not found: python” error? (macOS Monterey 12.3, python 3.10, Atom IDE, atom-python-run 0.9.7) Error just Add
eval "$(pyenv init --path)"
to~/.zprofile
. Here, first of all, you have to run the below commands one by onebrew install pyenv pyenv install --list pyenv install 2.7.18 pyenv versions pyenv global 2.7.18
After it just addeval "$(pyenv init --path)"
to~/.zprofile
- How to fix “zsh: command not found: python” error? (macOS Monterey 12.3, python 3.10, Atom IDE, atom-python-run 0.9.7)
To Fix “zsh: command not found: python” error? (macOS Monterey 12.3, python 3.10, Atom IDE, atom-python-run 0.9.7) Error just Add
eval "$(pyenv init --path)"
to~/.zprofile
. Here, first of all, you have to run the below commands one by onebrew install pyenv pyenv install --list pyenv install 2.7.18 pyenv versions pyenv global 2.7.18
After it just addeval "$(pyenv init --path)"
to~/.zprofile
Solution 1 : Add eval "$(pyenv init --path)"
to ~/.zprofile
Here, first of all, you have to run the below commands one by one
brew install pyenv
pyenv install --list
pyenv install 2.7.18
pyenv versions
pyenv global 2.7.18
After it just add eval "$(pyenv init --path)"
to ~/.zprofile
Conclusion
So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.
Also Read These Solutions
- Good alternative to Pandas .append() method, now that it is being deprecated?
- Error while installing pytq5 with pip: Preparing metadata (pyproject.toml) did not run successfully
- pip: “error: legacy-install-failure”
- ERROR: Failed building wheel for numpy , ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
- Python/Docker ImportError: cannot import name ‘json’ from itsdangerous