1. Download
Download the latest Linux version (version:4.5.3) installation files from Pycharm official website http://www.jetbrains.com/pycharm/download/.
2. Installing Pycharm
(1) Unzip the file in the appropriate path:
$ tar xzvf pycharm-professional-4.5.3.tar.gz
(2) running pycharm.sh in the bin directory
$ CD Pycharm-4.5.3/bin $./pycharm.sh
"Out Problem "
Error during the installation process:
Error:cannot Start Pycharm
NOJDK found. Please validate either PYCHARM_JDK, Jdk_home or java_homeenvironment variable points to valid JDK installation.
This is due to the fact that the jdklocation path is not found in the system and the JDK needs to be installed and configured.
3. Installing the JDK
Install and configure the JDK by referring to the methods provided in the Ubuntu12.04 installation pycharm.
(1) Execute the following command in turn:
$ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install Oracle-java8-installer
(2) When the installation is complete, run "java-version" or "javac-version" to see if the installation is successful. If you get an output similar to the following, it indicates that the installation was successful.
(3) If you want to automatically set up the Java 8 environment variables, you can use the following command:
$ sudo apt-get install Oracle-java8-set-default
After using this command, however, the Echo $JAVA _home is run in terminal without any output. Because some programs may need to $JAVA _home environment variables by default at run time, it is still necessary to set the environment variables.
4. Configuring $java_home Environment Variables
(1) Find out the path of your Java installation:
$ sudo update-alternatives--config java
It will return a result similar to the following, listing all Java Runtime Environment JRE installed natively.
in my native execution of sudo update-alternatives--config java results are:
[email protected]:~$ update-alternatives--config java
There is 1 choice for the alternative Java (Providing/usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0/usr/lib/jvm/java-8-oracle/jre/bin/java 1 Auto mode
* 1/usr/lib/jvm/java-8-oracle/jre/bin/java 1 Manual mode
visible Only one Java environment is installed: JDK8. It corresponds to the installation path:
/usr/lib/jvm/java-8-oracle
(2) Edit/etc/environment file
$ sudo nano/etc/environment
Copy the above path/usr/lib/jvm/java-8-oracle, add the following line
Java_home= "/usr/lib/jvm/java-8-oracle"
(3) Reload the file so that it takes effect immediately without having to log off and log back on
$ source/etc/environment
(4) test with the following command
$ echo $JAVA _home
5. Reinstall Pycharm
(1) CD to the corresponding bin directory, execute./pycharm.sh. Ask if you want to import settings, and choose not to import->ok.
(2) Initial setup, keep the default->ok.
(3) Create a launcher script, you need to enter a password.
(4) Successful Installation
(5) Set up Quick Start mode for Ubuntu under Pycharm
Under Ubuntu, every time you want to find the folder where pycharm.sh, execute./pycharm.sh, very troublesome. It's a good idea to create a shortcut.
Ubuntu shortcuts are placed in/usr/share/applications, first create a pycharm.desktop in this directory
$ sudo gedit/usr/share/applications/pycharm.desktop
Then enter the following, noting that exec and icon need to find the correct path
[Desktop Entry] Type = ApplicationName = Pycharmgenericname = Pycharm4comment = pycharm4:the Python ideexec = "/home/solomon/programfile/p ycharm-4.5.3/bin/pycharm.sh "%ficon =/home/solomon/programfile/pycharm-4.5.3/bin/pycharm.pngterminal = Pycharmcategories = Pycharm;
Then double-click to open, then lock to the launcher is good.
Reference
Ubuntu12.04 installation Pycharm
Http://www.cnblogs.com/zhcncn/p/4027025.html
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Ubuntu14.04 installation Pycharm