Problems installing Pycharm

If you have already all the prerequisites (such as Java) installed, try out charmy (PyCharm installer for Linux).

virtualenv charmy-env

source charmy-env/bin/activate

pip install charmy

charmy install

That will install PyCharm into your home directory. It will also simplify your feature PyCharm upgrades. To upgrade you would just have to type

charmy install

instead of downloading distribution manually, unpacking it, etc.

See https://pypi.python.org/pypi/charmy for more.


I had the same problem and as mentioned before the error was that openjdk was headless. What i did is i installed from the begining openjdk using the command apt-get install default-jdk (for ubuntu). I know it's not the best way to do it, however it is rather quick and simple.


PYcharm is now available as a snap. Can be easily installed as below

sudo apt update && sudo apt install snapd

Then the community edition can be installed by

sudo snap install pycharm-community --classic

The classic escape is to get snaps that have been published with classic confinements


I am having the same issue. It looks like maybe you and I both have a minimal (headless) Java install on our systems. Use your system's method for finding installed packages and search for Java, and i'll bet you find only openjdk-headless

yum list installed | grep openjdk
# or on debian-based systems
# dpkg --get-selections | grep openjdk
# =>java-1.7.0-openjdk-headless

Solution then is to install the same package without the "-headless" suffix.

Here's where I am getting my information for the solution: https://bugzilla.redhat.com/show_bug.cgi?id=1177379