Pycharm wont/unable connect to console
Hello! I'm fairly new to Pycharm and this is probably a very simple fix but its been driving me cray for days, I keep coming back to solve it an am getting nowhere. I can write scrips and run scripts fine, for example i just ran a program to print "hello" and its compiles fine and prints. But when i try to use the console it always says at the bottom 'connectiing to console...'. In the console window is printed
"/Users/Alex/PycharmProjects/FirstProject/venv/FirstProjectVen/bin/python /usr/bin/python3.4 "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/pydevconsole.py" --mode=client --port=54050
/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/usr/bin/python3.4': [Errno 2] No such file or directory
Process finished with exit code 2"
I've look through tutorials, the Pycharm setting up instructions, and other forums but can find how to solve this issue. Ive tried updating Pycharm and have now even deleted it from my laptop and re downloaded it (so its definitely the latest version). Not really sure what I'm missing here. Any help would be greatly appreciated.
Please sign in to leave a comment.
Hi!
Please share a screenshot of your console settings Preferences | Build, Execution, Deployment | Console | Python Console
Thanks for getting back to me!
Why do you have /usr/bin/python3.4 in Interpreter options field?
Removing it will solve the problem.
Thank you! I have removed it and now it's working, I knew it would be something simple like that! Thanks for your help!
Hey, i think i have the same problem but i don't have anything written in the interpreter options,
I'm adding a screenshot:


Hi Noasapir97,
You are not actually running your file. If you want to run it as a script, right-click it and choose Run...
If you want to run it in Python Console, right-click it and choose Run File in Python Console
See https://www.jetbrains.com/help/pycharm/running-applications.html for more details.
Thanks,
I've done it and it still shows me the "process runing" on the left bottom of my screen.(You can see that on the first screenshot I've uploaded earlier)
I think something maybe went wrong with the way PyCharm react to the Python 3.7
I'll be more than happy if you'll help me:)
Thanks again!
What processes does it show when you click it?
Does Python Console open at all?
It shows “connecting to console”.
Im not sure I completely understood the meaning of opened console or how to check if it’s opened or not.
Try rebooting your computer. If that doesn't help, make sure nothing is blocking Python Console from connecting to the localhost. Quite often it can be caused by a firewall or antivirus.
Thanks,

and so on...
before I try the rebooting solution,
I've seen something weird when I tried to run similar program in the Phthon console,
Im adding a screenshot:
After installing PyCharm you must continue with your first New Project. Create your first project and PyCharm will then install Python. On Windows systems, watch for Windows Defender to pop up asking if you want to allow PyCharm to install Python. PyCharm will display a message asking you to allow the install and after a brief pause will continue with the Python install.
Follow the instructions provided by JetBrain here, https://www.jetbrains.com/help/pycharm/creating-and-running-your-first-python-project.html#edit-file which includes unchecking the following default option per the linked page "Also, deselect the Create a main.py welcome script checkbox because you will create a new Python file for this tutorial."
You can check that the Python Console works once Python is installed.
I ran into this problem trying to walk through an ArcGIS Pro tutorial on using PyCharm. The instructions on the ESRI website suggest you install PyCharm and then configure the ArcGIS python interpreter as a default system interpreter. Without running your firstPython project to complete PyCharm installation of PyCharm's python interpreter nothing works correctly.
No KUDOS to either PyCharm or ArcGIS for not making it clear a firstPython project run-through is, for all intents an purposes, a completely necessary step to install PyCharm.
i have same problem
and my console setting :
Have you tried rebooting your PC? Also, do you have any anti-virus or anti-malware software running?