pycharm builtin unresolved reference

djdick picture djdick · Dec 2, 2013 · Viewed 12.1k times · Source

I'm using PyCharm and just trying out some simple stuff. When I try to use raw_input(), the editor is showing an unresolved reference error.

I'm not sure what the issue is. Has anyone seen this before?

Answer

ecatmur picture ecatmur · Dec 2, 2013

You have the language version set to Python 3; raw_input in Python 2 is just input in Python 3 (input in Python 2 is eval(input()) in Python 3: What's the difference between raw_input() and input() in python3.x?).

To select the Python version, see: How to select Python version in PyCharm?