That error is seen if no DISPLAY
var is set, you wouldn't be able to run xterm
for that reason either. Nothing to do with your graphics card.
Just correct your DISPLAY
settings and then re-try pycharm.
The DISPLAY
setting may be missing because you're trying to execute as root instead of your normal userid (assuming you are running X as your userid, not root)? Just a guess...