{"id":4774,"date":"2018-12-08T08:32:53","date_gmt":"2018-12-08T08:32:53","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=4774"},"modified":"2018-12-11T04:52:07","modified_gmt":"2018-12-11T04:52:07","slug":"how-to-install-jetbrains-pycharm-on-ubuntu-linux-hint","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/12\/08\/how-to-install-jetbrains-pycharm-on-ubuntu-linux-hint\/","title":{"rendered":"How to Install JetBrains PyCharm on Ubuntu \u2013 Linux Hint"},"content":{"rendered":"<p>PyCharm is an awesome Python IDE from JetBrains. It has a lot of awesome features and a beautiful looking UI (User Interface). It is really easy to use.<\/p>\n<p>In this article, I will show you how to install PyCharm on Ubuntu. The procedure shown here will work on Ubuntu 16.04 LTS and later. I will be using Ubuntu 18.04 LTS for the demonstration in this article. So, let\u2019s get started.<\/p>\n<p>Before you install PyCharm on Ubuntu, you should install some pre-requisites packages. Otherwise, PyCharm won\u2019t work correctly.<\/p>\n<p>You have to install the Python interpreters that you want to use with PyCharm to run your project. You also have to install PIP for the Python interpreters that you wish to use.<\/p>\n<p>If you want to use Python 2.x with PyCharm, then you can install all the required packages with the following command:<\/p>\n<p>$ sudo apt install python2.7 python-pip<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/1-6.png\" alt=\"\" width=\"786\" height=\"95\" \/><\/p>\n<p>Now, press y and then press &lt;Enter&gt;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/2-6.png\" alt=\"\" width=\"931\" height=\"422\" \/><\/p>\n<p>All the required packages for working with Python 2.x in PyCharm should be installed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/3-7.png\" alt=\"\" width=\"1015\" height=\"326\" \/><\/p>\n<p>If you want to use Python 3.x with PyCharm, then install all the required packages with the following command:<\/p>\n<p>$ sudo apt install python3-pip python3-distutils<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/4-6.png\" alt=\"\" width=\"767\" height=\"87\" \/><\/p>\n<p>Now, press y and then press &lt;Enter&gt; to continue.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/5-6.png\" alt=\"\" width=\"983\" height=\"460\" \/><\/p>\n<p>All the required packages for working with Python 3.x in PyCharm should be installed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/6-6.png\" alt=\"\" width=\"987\" height=\"324\" \/><\/p>\n<h2>Installing PyCharm:<\/h2>\n<p>PyCharm has two versions. The Community version, and the Professional versions. The Community version is free to download and use. The Professional version is not free. You have to purchase a license to use the Professional version. The Community version is okay mostly. But it lacks some of the advance features of the Professional version. So, if you need these features, then buy a license and install the Professional version.<\/p>\n<p>On Ubuntu 16.04 LTS and later, PyCharm Community and Professional both versions are available as a snap package in the official snap package repository.<\/p>\n<p>To install PyCharm Community version snap package on Ubuntu 16.04 LTS and later, run the following command:<\/p>\n<p>$ sudo snap install pycharm-community &#8211;classic<\/p>\n<p>To install PyCharm Professional version snap package on Ubuntu 16.04 LTS and later, run the following command:<\/p>\n<p>$ sudo snap install pycharm-professional &#8211;classic<\/p>\n<p>In this article, I will go with the PyCharm Community version.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/7-6.png\" alt=\"\" width=\"954\" height=\"93\" \/><\/p>\n<p>As you can see, PyCharm Community version snap package is being downloaded.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/8-6.png\" alt=\"\" width=\"1003\" height=\"136\" \/><\/p>\n<p>PyCharm Community version is installed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/9-6.png\" alt=\"\" width=\"968\" height=\"157\" \/><\/p>\n<h3>Initial Configuration of PyCharm:<\/h3>\n<p>Now that PyCharm is installed, you can start it from the Application Menu of Ubuntu. Just search for pycharm in the Application Menu and you should see PyCharm icon as marked in the screenshot below. Just click on it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/10-7.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>As you\u2019re running PyCharm for the first time, you will have to do some initial configuration. Once you see the following window, click on Do not import settings and click on OK.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/11-6.png\" alt=\"\" width=\"582\" height=\"214\" \/><\/p>\n<p>Now, you will see the JetBrains license agreement window.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/12-7.png\" alt=\"\" width=\"569\" height=\"421\" \/><\/p>\n<p>Now, click on I confirm that I have read and accept the terms of this User Agreement and click on Continue to accept the license agreement.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/13-6.png\" alt=\"\" width=\"658\" height=\"411\" \/><\/p>\n<p>Now, you have to select a UI theme for PyCharm. You can select either the dark theme \u2013 Darcula or the Light theme.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/14-5.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>Once you select a theme, you can click on Skip Remaining and Set Defaults to leave everything else the default and start PyCharm.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/15-6.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>Otherwise, click on Next: Featured plugins.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/16-6.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>Once you click on Next: Featured plugins, PyCharm will suggest you some common plugins that you may want to install. If you want to install any plugins from here, click on Install.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/17-4.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>Now, click on Start using PyCharm.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/18-3.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>As you can see, PyCharm is starting.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/19-2.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>PyCharm has started. This is the dashboard of PyCharm.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/20-2.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<h3>Creating a Project in PyCharm:<\/h3>\n<p>In this section, I will show you how to create a Python project in PyCharm.First, open PyCharm and click on Create New Project.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/21-2.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>Now, select a location for your new project. This is where all the files of this project will be saved.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/22-2.png\" alt=\"\" width=\"820\" height=\"494\" \/><\/p>\n<p>If you want, you can also change the default Python version of your project. To do that, click on the Project Interpreter section to expand it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/23-2.png\" alt=\"\" width=\"1052\" height=\"492\" \/><\/p>\n<p>Here, you can see in the Base interpreter section, Python 3.6 is selected by default. It is the latest version of Python 3 installed on my Ubuntu 18.04 LTS machine. To change the Python version, click on the Base interpreter drop down menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/24-2.png\" alt=\"\" width=\"982\" height=\"514\" \/><\/p>\n<p>As you can see, all the Python versions installed on my Ubuntu 18.04 LTS machine is listed here. You can pick the one you need from the list. If you want any version of Python which is not listed here, just install it on your computer, and PyCharm should be able to detect it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/25-2.png\" alt=\"\" width=\"1011\" height=\"516\" \/><\/p>\n<p>Once you\u2019re happy with all the settings, click on Create.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/26-1.png\" alt=\"\" width=\"1079\" height=\"513\" \/><\/p>\n<p>The project should be created.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/27-1.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>Now, to create a new Python script, right click on the project and go to New &gt; Python File as marked in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/28-1.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>Now, type in a file name for your Python script and click on OK.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/29-1.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>As you can see, test.py file is created and opened in the editor section of PyCharm.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/30-1.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>I wrote a very basic Python script as you can see.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/31-1.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>Now, to run the Python script currently opened in the editor, press &lt;Alt&gt; + &lt;Shift&gt; + &lt;F10&gt; or go to Run &gt; Run\u2026 as marked in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/32-1.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>As you can see, the Python script which is currently opened in the editor is shown here. Just press &lt;Enter&gt;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/33-1.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>As you can see, the script is running.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/34-1.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>Once the type in all the inputs, I get the desired output as well.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/35-1.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>So, that\u2019s how you install and use PyCharm on Ubuntu. Thank you for reading this article.<\/p>\n<p><a href=\"https:\/\/linuxhint.com\/install_jetbrains_pycharm_ubuntu\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PyCharm is an awesome Python IDE from JetBrains. It has a lot of awesome features and a beautiful looking UI (User Interface). It is really easy to use. In this article, I will show you how to install PyCharm on Ubuntu. The procedure shown here will work on Ubuntu 16.04 LTS and later. I will &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/12\/08\/how-to-install-jetbrains-pycharm-on-ubuntu-linux-hint\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Install JetBrains PyCharm on Ubuntu \u2013 Linux Hint&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4774","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/4774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=4774"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/4774\/revisions"}],"predecessor-version":[{"id":5527,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/4774\/revisions\/5527"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=4774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=4774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=4774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}