[1] + stopped python

Hi

I recently bought a MacBook pro 13 for my data science works. But I am facing a strange behavior of the terminal. Whenever I trigger a command (say python), it return [1] + stopped python I am not able to run any command through terminal.


All the command I trigger in the terminal goes into "suspension" mode. Can you please help me with a solution.


Thanks in advance.

MacBook Pro 13”, macOS 10.14

Posted on Mar 23, 2019 6:12 AM

Reply
5 replies

Mar 24, 2019 5:31 AM in response to AbhiGh

You use control-d to exit the interpreter cleanly. You may have typed control-z, which sends a SIGTSTP signal to the Python interpreter to stop what it is doing, but hang out in memory with open files, etc. You can resume the Python interpreter simply by typing fg (SIGCONT signal) in the Terminal, followed by a return. That brings the Python Interpreter back to the foreground as a running process, and the familiar ">>>" prompt reappears. Now, you can press control-d to exit the interpreter normally.


See if the Anaconda distribution has the Python idle command. It is the visual Python IDE:


idle &

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.

[1] + stopped python

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