简体   繁体   English

在Ubuntu 14.04上启动Pycharm时出错

[英]Error starting Pycharm on Ubuntu 14.04

I have installed pycharm on a google cloud VM with Ubuntu 14.04. 我已经在Ubuntu 14.04的Google云端VM上安装了pycharm。 I have installed pycharm and tried to open it but i get the error : 我已经安装了pycharm并尝试将其打开,但出现错误:

root@ubuntu1604-4cpu:~# pycharm-community
Startup Error: Unable to detect graphics environment

I read that it could be because of open java but my java environment is fine: 我读到这可能是因为开放Java,但我的Java环境很好:

root@ubuntu1604-4cpu:~# java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

There is no access issue either, I have run it both as sudo and my user.. i installed even nvidia graphics driver to be sure.. 也不存在访问问题,我已经以sudo和我的用户身份运行了它。为了确保我什至安装了nvidia图形驱动程序。

nothing seems to working.. 似乎没有任何效果。

Any help is much appreciated.. thanks a million :) 任何帮助都非常感激..谢谢一百万:)

Regards, 问候,

您可以尝试在启动PyCharm之前在bash中执行export DISPLAY=:0.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM