在pycharm中显示no python interpreter selected,ubuntu自带了python,但是需要自己在pycharm中引入进来。
解决方法是:
1.选择File->setting->点击project三角->Project interpreter
2.点击project interpreter右侧的设置键标->add local->选择System interpreter->base interpreter中选择python2.7或者3.5
之后就可以在project interpreter框中选择需要的版本,新建project时也能用选择的python版本新建。