0

I'm getting the following error when I start an interactive console in PyCharm

File "C:\Users\Tom\Anaconda3\Lib\site.py", line 176
file=sys.stderr)
    ^
SyntaxError: invalid syntax

Process finished with exit code 1
Couldn't connect to console process.

I've set the interpreter in Configurations to 3.4 and can run by programs correctly, I just can't load an interactive console.

4
  • site.py is loaded on startup . . . did that file get modified? Commented Feb 10, 2016 at 17:49
  • No it hasn't been modified. I've read that getting the error above is usually a symptom of the wrong python configeration stackoverflow question Commented Feb 10, 2016 at 18:01
  • Ah, interesting. Sounds like you should double check the settings at "Build, Execution, Deployment > Console > Python Console" and verify that that's not different than what you specified at "Project > Project Interpreter" Commented Feb 10, 2016 at 20:10
  • Success, if you make that an answer I'll give you the credit. Thanks Commented Feb 11, 2016 at 14:48

1 Answer 1

3

PyCharm has a few places you can set the interpreter.

Double check the settings at Build, Execution, Deployment > Console > Python Console and verify that that's not different than what you specified at Project > Project Interpreter

Sign up to request clarification or add additional context in comments.

1 Comment

Apparently that worked but another problem was caused. I think it has something to do with Anaconda. I ended up downgrading to pycharm4.5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.