I cannot seem to be able to find the setting to enable line numbers for all files, but I have to always right click and enable this on per file basis.
There mu
For version 4.0, 4.5 on Windows
File -> Settings
Then,
Editor -> General -> Appearance -> Show line numbers
For version 4.0 on Mac OSX
PyCharm-->Preferences
Editor-->General-->Appearance-->checkbox: "Show line numbers"