How to install Pycharm in Ubuntu

How to install Pycharm in Ubuntu

Pycharm is a free source application to develop python codings. It has a feature such as auto error detection, code completion, customized user interface etc. Installation of PyCharm is explained in this manual.

To install JAVA

Java is necessary to work with PyCharm. So install java before starting with the PyCharm installation. Run the following command to add PPA repository for installing java.

root@linuxhelp:~# add-apt-repository ppa:webupd8team/java 
Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK7 / JDK8 / JDK9). There are no actual Java files in this PPA.
More info (and Ubuntu installation instructions):
- for Oracle Java 7: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
- for Oracle Java 8: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
.
.
.
gpg: keyring `/tmp/tmpdbh5mi33/secring.gpg'  created
gpg: keyring `/tmp/tmpdbh5mi33/pubring.gpg'  created
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpdbh5mi33/trustdb.gpg: trustdb created
gpg: key EEA14886: public key " Launchpad VLC"  imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK


Run the following command to update the system’ s repository.

root@linuxhelp:~# apt-get update  
Hit http://security.ubuntu.com wily-security InRelease
Get:1 http://ppa.launchpad.net wily InRelease [15.5 kB]                
Hit http://in.archive.ubuntu.com wily InRelease                                
Hit http://security.ubuntu.com wily-security/main Sources                                                
Hit http://in.archive.ubuntu.com wily-updates InRelease                                        
Hit http://security.ubuntu.com wily-security/restricted Sources                                
.
.
Hit http://in.archive.ubuntu.com wily-backports/universe amd64 Packages                                                                                                              
Hit http://in.archive.ubuntu.com wily-backports/multiverse amd64 Packages                                                                                                            
Hit http://in.archive.ubuntu.com wily-backports/main i386 Packages                                                                                                                   
Hit http://in.archive.ubuntu.com wily-backports/restricted i386 Packages                                                                                                             
Hit http://in.archive.ubuntu.com wily-backports/universe i386 Packages                                                                                                               
Hit http://in.archive.ubuntu.com wily-backports/multiverse i386 Packages                                                                                                             
Hit http://in.archive.ubuntu.com wily-backports/main Translation-en                                                                                                                  
Hit http://in.archive.ubuntu.com wily-backports/multiverse Translation-en                                                                                                            
Hit http://in.archive.ubuntu.com wily-backports/restricted Translation-en                                                                                                            
Hit http://in.archive.ubuntu.com wily-backports/universe Translation-en                                                                                                              
Fetched 23.8 kB in 14s (1,691 B/s)                                                                                                                                                   
Reading package lists... Done


Now install the java packages using the following command.

root@linuxhelp:~# apt-get install oracle-java8-installer -y  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  gsfonts-x11 java-common
Suggested packages:
  default-jre equivs binfmt-support visualvm ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming
The following NEW packages will be installed:
  gsfonts-x11 java-common oracle-java8-installer
0 upgraded, 3 newly installed, 0 to remove and 252 not upgraded.
Need to get 163 kB of archives.
After this operation, 511 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu/ wily/main java-common all 0.52 [131 kB]
Get:2 http://ppa.launchpad.net/webupd8team/java/ubuntu/ wily/main oracle-java8-installer all 8u101+8u101arm-1~webupd8~2 [23.6 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu/ wily/main gsfonts-x11 all 0.22 [9,108 B]
.
.
.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/rmic to provide /usr/bin/rmic (rmic) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/schemagen to provide /usr/bin/schemagen (schemagen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsgen to provide /usr/bin/wsgen (wsgen) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/wsimport to provide /usr/bin/wsimport (wsimport) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/xjc to provide /usr/bin/xjc (xjc) in auto mode
Oracle JDK 8 installed
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnpjp2.so to provide /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so) in auto mode
Oracle JRE 8 browser plugin installed
Setting up gsfonts-x11 (0.22) ...

To install Pycharm

Run the following command to add the key file for installing pycharm.

root@linuxhelp:~# wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add - 
OK


Create the new repository file in " /etc/apt/sources.list.d/getdeb.list" file.

root@linuxhelp:~# sh -c ' echo " deb http://archive.getdeb.net/ubuntu trusty-getdeb apps"  > >  /etc/apt/sources.list.d/getdeb.list'  


Now update the repositories

root@linuxhelp:~# apt-get update
Hit http://security.ubuntu.com wily-security InRelease              
Hit http://ppa.launchpad.net wily InRelease                                                          
Hit http://in.archive.ubuntu.com wily InRelease                                              
Hit http://in.archive.ubuntu.com wily-updates InRelease                                                           
Hit http://security.ubuntu.com wily-security/main Sources                                                          
Hit http://ppa.launchpad.net wily/main amd64 Packages                                     
Hit http://in.archive.ubuntu.com wily-backports InRelease                                                  
Hit http://ppa.launchpad.net wily/main i386 Packages                                                                 
Hit http://security.ubuntu.com wily-security/restricted Sources                                            
Get:1 http://archive.getdeb.net trusty-getdeb InRelease [8,145 B]                                         
.
.
.
Hit http://in.archive.ubuntu.com wily-backports/multiverse Sources                                                                                                                   
Hit http://in.archive.ubuntu.com wily-backports/main amd64 Packages                                                                                                                  
Hit http://in.archive.ubuntu.com wily-backports/restricted amd64 Packages                                                                                                            
Hit http://in.archive.ubuntu.com wily-backports/universe amd64 Packages                                                                                                              
Hit http://in.archive.ubuntu.com wily-backports/multiverse amd64 Packages                                                                                                            
Hit http://in.archive.ubuntu.com wily-backports/main i386 Packages                                                                                                                   
Hit http://in.archive.ubuntu.com wily-backports/restricted i386 Packages                                                                                                             
Hit http://in.archive.ubuntu.com wily-backports/universe i386 Packages                                                                                                               
Hit http://in.archive.ubuntu.com wily-backports/multiverse i386 Packages                                                                                                             
Hit http://in.archive.ubuntu.com wily-backports/main Translation-en                                                                                                                  
Hit http://in.archive.ubuntu.com wily-backports/multiverse Translation-en                                                                                                            
Hit http://in.archive.ubuntu.com wily-backports/restricted Translation-en                                                                                                            
Hit http://in.archive.ubuntu.com wily-backports/universe Translation-en                                                                                                              
Fetched 153 kB in 13s (11.0 kB/s)                                                                                                                                                    
Reading package lists... Done


Run the below command to install PyCharm.

root@linuxhelp:~# apt-get install pycharm -y 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  pycharm-data
The following NEW packages will be installed:
  pycharm pycharm-data
0 upgraded, 2 newly installed, 0 to remove and 252 not upgraded.
Need to get 125 MB of archives.
.
.
.
Preparing to unpack .../pycharm_2016.1.2-1~getdeb1_amd64.deb ...
Unpacking pycharm (2016.1.2-1~getdeb1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu3) ...
Processing triggers for bamfdaemon (0.5.2~bzr0+15.10.20150627.1-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.58ubuntu1) ...
Setting up pycharm-data (2016.1.2-1~getdeb1) ...
Setting up pycharm (2016.1.2-1~getdeb1) ...

After installing pycharm, open the application from your Unity Dash.

Choose import settings, if you are already using PyCharm.

Accept the terms and conditions.


Set with the initial configuration of PyCharm.



To start a new project, Create New Project.

Set location path and click create.

Navigate to File &rarr New and enter a file name.



Write your python coding and you can run the code as shown in below image.

In the pop-up window, Choose the respective project you want to run.

Tag : Python
Comment
ijash
Jul 18 2017
it ask for update. and i just followed your steps. so how to update the pycharm?
Add a comment
FAQ
Q
How to start a new project?
A
Create New Project follow this instruction:
1.Set a location path and click create.
2. Navigate to File &rarr New and enter a file name.
Q
What do I need to start with PyCharm? What are the system requirements?
A
In general, to start developing in Python with PyCharm you need the following (depending on your platform)
Q
What is Pycharm?
A
Pycharm is a free source application to develop python codings. It has a feature such as auto error detection, code completion, customized user interface etc
Q
Which languages does PyCharm support?
A
With PyCharm you can develop applications in Python. In addition, one can develop Django, Flask, Pyramid and WebToPy applications. Also, it fully supports
HTML (including HTML5), CSS, JavaScript, and XML: these languages are bundled in the IDE via plugins and are switched on for you by default. Support for
other languages can also be added via plugins (go to Settings | Plugins (or PyCharm | Preferences | Plugins for macOS users) to find out more or set them up
during the first IDE launch).
Q
What platforms can I run PyCharm on?
A
PyCharm is a cross-platform IDE that works on Windows, macOS, and Linux.