HOW TO CHANGE TERMINAL BACK TO DEFAULT

i have mac os monterey and i tried to set up my new python path via the zsh shell, I ended up messing up my terminal and I am not able to do any further commands as it is currently showing this


Last login: Tue Nov 16 02:18:55 on ttys001


WARNING: Python 2.7 is not recommended. 

This version is included in macOS for compatibility with legacy software. 

Future versions of macOS will not include Python 2.7. 

Instead, it is recommended that you transition to using 'python3' from within Terminal.


Python 2.7.18 (default, Oct 2 2021, 04:20:39) 

[GCC Apple LLVM 13.0.0 (clang-1300.0.29.1) [+internal-os, ptrauth-isa=deploymen on darwin

Type "help", "copyright", "credits" or "license" for more information.

>>> 




I am not able to do any commands, as after three time trying to exit this python thing, I just get [process completed] message.


MacBook Pro 13″, macOS 12.0

Posted on Nov 15, 2021 3:35 PM

Reply
2 replies

Nov 17, 2021 12:24 PM in response to riyaz611

riyaz611 wrote:

i have mac os monterey and i tried to set up my new python path via the zsh shell, I ended up messing up my terminal and I am not able to do any further commands as it is currently showing this

Last login: Tue Nov 16 02:18:55 on ttys001

WARNING: Python 2.7 is not recommended. 
This version is included in macOS for compatibility with legacy software. 
Future versions of macOS will not include Python 2.7. 
Instead, it is recommended that you transition to using 'python3' from within Terminal.

Python 2.7.18 (default, Oct 2 2021, 04:20:39) 
[GCC Apple LLVM 13.0.0 (clang-1300.0.29.1) [+internal-os, ptrauth-isa=deploymen on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 



I am not able to do any commands, as after three time trying to exit this python thing, I just get [process completed] message.


did you try exiting the python shell, simply enter:

 exit


or from Terminal>Preferences>General>Shell Opens with Default Log-in Shell

Nov 20, 2021 8:08 PM in response to riyaz611

riyaz611 wrote:

I am not able to do any commands, as after three time trying to exit this python thing, I just get [process completed] message.

It sounds like you launched your app from the Finder and your app automatically opened a Terminal window. This is the normal response once an app finishes running if the app automatically opened the Terminal window.


You may want to try launching your app from the command line instead while you are troubleshooting it.


Which version of Python does your app use? As indicated by the error messages Python 2 has been deprecated so it is best to use Python 3 although this does require modifying the app if it was made using Python 2.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

HOW TO CHANGE TERMINAL BACK TO DEFAULT

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.