Output problems, RUN doesn't show result. HELP
已回答
It seems that PyCharm was offended at me. I just wrote my simple code and at runtime ... saw nothing except: Process finished with exit code 0. Although 2 more minutes ago everything worked perfectly. Elementary print does not work. More precisely, it works, for example, in debug, but it wounds nothing. It's the same with windows when working with PyQt. Sometimes RUN comes to life and I see the result of work, but such happiness happens rarely. What is the problem - there are no ideas. Please, help.
请先登录再写评论。
Hi Elnisoftglow! Could you please take a screenshot of the Run Configuration details?
Thanks for the quick response!
For the history: the problem was with Comodo antivirus.
Hello, i have the same problem but i don't have Comodo antivirus...

Here a screenshot
Okay no sorry i found the problem, i was run a py script but the console was run the main.py script.
And it was a class so nothing were print.
Can some please help me. I am getting same issue where my code is not showing any output except "Process finished with exit code 0". My code is finishing but not able to find what exactly is the problem here. I am new to PyCharm so donot any idea how this can be fixed.
Hello,
Could you please provide a code example? Is it running as expected out of PyCham in a command line? Please also attach a screenshot of
Run/Debug Configuration https://www.jetbrains.com/help/pycharm/creating-and-editing-run-debug-configurations.html for the executing code.
Can someone help!!
I also have a similar problem.
I tried the suggestions made above but still got no where ;.;
below is the attached picture of the configuration settings
Hello Kagnahpan,
Could you please execute the script out of PyCharm? Just copy the command from the Run output and paste it to terminal/command line. Will you get the same result?
I'm facing the exact problem.
If there's an error in my code can you please point it out? Antonina Belianskaya
Hi folks,
I have exactly the same problem.
Interpreter is set up to Python 3.10
In debug output I can see correct result, but while running it normally, I cannot see actual script output.
Below is the simple code -
"C:\Users\Admin\Documents\Python labs\venv\Scripts\python.exe" "C:/Users/Admin/Documents/Python labs/test1.py"
Process finished with exit code 0
Debug output -
"C:\Users\Admin\Documents\Python labs\venv\Scripts\python.exe" "C:\Program Files\JetBrains\PyCharm Community Edition 2021.2.3\plugins\python-ce\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 3924 --file "C:/Users/Admin/Documents/Python labs/test1.py"
warning: PYDEVD_USE_CYTHON environment variable is set to 'NO'. Frame evaluator will be also disabled because it requires Cython extensions to be enabled in order to operate correctly.
C:\Program Files\JetBrains\PyCharm Community Edition 2021.2.3\plugins\python-ce\helpers\pydev\pydevd.py:1844: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
dummy_thread = threading.currentThread()
Connected to pydev debugger (build 212.5457.59)
This is Python 3.10.0
Process finished with exit code 0
Funny thing is I have the same PyCharm (2021.2.3) and same Python (3.10) on my work and personal laptops. On personal laptop same code works, while on work one - no. And no, there are no limitations or restrictions, I am logged in to both laptops as admin, not with restricted privileges.
Any ideas are really welcome. Running debugging each time is a workaround for now, but not the ideal option I guess.
In debug configuration - select Modify Options - add Emulate terminal in output console.... this should resolve the problem...
Change the options on the button (circled in red-font) to “Current File”….