Issue regarding Sublime Text 2 console input (Python 2)

回眸只為那壹抹淺笑 提交于 2019-12-25 01:21:45

问题


I've been getting back into Python and usually I use IDLE but I like sublime better so I've been playing around with it and I realize that the console doesn't accept input. I checked a few threads on here and people were saying I had to install the "SublimeREPL" extension via package control. Well I've done just that and I still get the following error everytime I run the code:

Enter your name here: Traceback (most recent call last):
  File "/Users/carsonclark/Documents/Python Projects/Drills1.py", line 5, in <module>
    name = raw_input('Enter your name here: ')
EOFError: EOF when reading a line
[Finished in 0.0s with exit code 1]

Perhaps there's some kind of setting I need to change or something? I'm on a Mac (Mavericks) and I'd really appreciate anybody's help. Thanks for reading.

Edit:

How can I run the file to the left in such a way that I can enter input.. this is what I have so far..

http://i.gyazo.com/d720c6b7e9c2e71fdc22588e4db0bbd1.png

来源:https://stackoverflow.com/questions/27546644/issue-regarding-sublime-text-2-console-input-python-2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!