{"id":38759,"date":"2022-04-15T16:04:44","date_gmt":"2022-04-15T16:04:44","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=38759"},"modified":"2022-04-15T16:04:44","modified_gmt":"2022-04-15T16:04:44","slug":"pycharm-ide-2022-1-released","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2022\/04\/pycharm-ide-2022-1-released\/","title":{"rendered":"PyCharm IDE 2022.1 Released! How to install it in Ubuntu in 3 ways"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" class=\"alignleft size-thumbnail wp-image-38760\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<p>JetBrains announced the 2022.1 release of its PyCharm IDE few days ago. Here&#8217;s how to install in Ubuntu in different ways.<\/p>\n<h3>What&#8217;s New in PyCharm 2022.1<\/h3>\n<p>This is the first release of the IDE in 2022. Release highlights include (see <a href=\"https:\/\/blog.jetbrains.com\/pycharm\/2022\/04\/2022-1\/\" rel=\"noopener\" target=\"_blank\">release note for details<\/a>):<\/p>\n<ul>\n<li>Basic http authentication support for custom package repositories<\/li>\n<li>Enhanced code completion for TypedDict<\/li>\n<li>Improved TypedDict per-key warnings<\/li>\n<li>Run commands directly from Markdown files<\/li>\n<li>New Copy code snippet for Markdown.<\/li>\n<li>Code cells remain in Edit mode after execution (Pro)<\/li>\n<li>Optimized cell copy-pasting (Pro)<\/li>\n<li>MongoDB: Editing fields in results (Pro)<\/li>\n<li>New Services UI for Docker (Pro)<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-2022.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-2022-600x409.jpg\" alt=\"\" width=\"600\" height=\"409\" class=\"aligncenter size-large wp-image-38761\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-2022-600x409.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-2022-300x204.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-2022-768x523.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-2022.jpg 980w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>How to Install PyCharm 2022.1 in Ubuntu Linux<\/h3>\n<h4>Method 1: Snap package<\/h4>\n<p>JetBrains provides official package for Ubuntu users through the Snap which runs in sandbox. Ubuntu user may just search for and install it from Ubuntu Software:<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-softwarecenter.webp\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-softwarecenter-600x346.webp\" alt=\"\" width=\"600\" height=\"346\" class=\"aligncenter size-large wp-image-38762\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-softwarecenter-600x346.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-softwarecenter-300x173.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-softwarecenter-768x443.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/pycharm-softwarecenter.webp 1010w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>For choice, you may also press <b>Ctrl+Alt+T<\/b> on keyboard and run commands below to install it:<\/p>\n<pre>sudo snap install pycharm-community --classic<\/pre>\n<p>And you may replace <code>pycharm-community<\/code> with <code>pycharm-professional<\/code> in command for pro edition.<\/p>\n<h4>Method 2: Flatpak package<\/h4>\n<p>The IDE is also available to install as Flatpak, another universal package runs in sandbox.<\/p>\n<p>1. First press Ctrl+Alt+T on keyboard and run command to install Flatpak daemon:<\/p>\n<pre>sudo apt install flatpak<\/pre>\n<p>2. Next, install the Python IDE as Flatpak using command:<\/p>\n<pre>flatpak install https:\/\/dl.flathub.org\/repo\/appstream\/com.jetbrains.PyCharm-Community.flatpakref<\/pre>\n<p>For the Professional edition, use command:<\/p>\n<pre>flatpak install https:\/\/dl.flathub.org\/repo\/appstream\/com.jetbrains.PyCharm-Professional.flatpakref<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/flatpak-pycharm.webp\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/flatpak-pycharm-600x377.webp\" alt=\"\" width=\"600\" height=\"377\" class=\"aligncenter size-large wp-image-38764\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/flatpak-pycharm-600x377.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/flatpak-pycharm-300x189.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/flatpak-pycharm-768x483.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/flatpak-pycharm.webp 876w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h4>Method 3: Linux Tarball<\/h4>\n<p>For those don&#8217;t like the Snap and\/or Flatpak, there&#8217;s no official <code>.deb<\/code> package available though you may keep an eye on this <a href=\"https:\/\/launchpad.net\/~xtradeb\/+archive\/ubuntu\/apps\/\" rel=\"noopener\" target=\"_blank\">unofficial PPA<\/a>.<\/p>\n<p>There&#8217;s however Linux tarball available to download in its website:<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/www.jetbrains.com\/pycharm\/download\/#section=linux\" target=\"_blank\" rel=\"noreferrer noopener\">Download Pycharm<\/a><\/div>\n<\/div>\n<p>After downloaded the package, extract and run the &#8220;<b>pycharm.sh<\/b>&#8221; file under &#8216;bin&#8217; sub-folder will launch the IDE.<\/p>\n<h5><u>Create app shortcut so to launch PyCharm IDE from start menu<\/u><\/h5>\n<p>The Linux tarball lacks app shortcut integration. Here&#8217;s how to create one manually.<\/p>\n<p>1.) For current user only, I&#8217;d recommend to move the source folder into &#8220;<b>.local\/bin<\/b>&#8221; folder.<\/p>\n<p>Open &#8216;Files&#8217;, press <b>Ctrl+H<\/b>, and then navigate to &#8220;<b>.local -> bin<\/b> (create if not exist)&#8221;. Then, move the source folder from Downloads to that directory.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/mv-pychram-localbin.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/mv-pychram-localbin-600x357.jpg\" alt=\"\" width=\"600\" height=\"357\" class=\"aligncenter size-large wp-image-38766\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/mv-pychram-localbin-600x357.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/mv-pychram-localbin-300x179.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/mv-pychram-localbin-768x457.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/mv-pychram-localbin.jpg 1131w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>2.) Press <b>Ctrl+Alt+T<\/b> on keyboard to open terminal, and verify by running command:<\/p>\n<pre>~\/.local\/bin\/pycharm-*\/bin\/pycharm.sh<\/pre>\n<p>If the IDE launches, you can now create app shortcuts via the next step.<\/p>\n<p>3.) In terminal (Ctrl+Alt+T), run command to create a shortcut file and edit via Gedit text editor:<\/p>\n<pre>gedit ~\/.local\/share\/applications\/pycharm-community.desktop<\/pre>\n<p>When the file opens, add following lines:<\/p>\n<blockquote><p>[Desktop Entry]<br \/>\nName=PyCharm Community<br \/>\nExec=<b>\/home\/ji\/.local\/bin\/pycharm-community-2022.1\/bin\/pycharm.sh<\/b><br \/>\nIcon=<b>\/home\/ji\/.local\/bin\/pycharm-community-2022.1\/bin\/pycharm.png<\/b><br \/>\nTerminal=false<br \/>\nType=Application<br \/>\nCategories=Application;Development;<br \/>\nKeywords=ide;python;charm;<br \/>\nStartupWMClass=jetbrains-pycharm-ce<\/p><\/blockquote>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/create-shortcut-pycharm.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/create-shortcut-pycharm-600x353.jpg\" alt=\"\" width=\"600\" height=\"353\" class=\"aligncenter size-large wp-image-38767\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/create-shortcut-pycharm-600x353.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/create-shortcut-pycharm-300x177.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/create-shortcut-pycharm-768x452.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/create-shortcut-pycharm.jpg 915w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>NOTE: you need to change the value of &#8220;Exec&#8221; and &#8220;Icon&#8221; by replacing <b>ji<\/b> with your username, and community with professional for Pro edition.<\/p>\n<p>Tip: you may just Press <b>Ctrl+L<\/b> in file manager to copy the PATH to current folder quickly. And then paste in the previous text editor.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/quick-copy-path.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/quick-copy-path-600x304.jpg\" alt=\"\" width=\"600\" height=\"304\" class=\"aligncenter size-large wp-image-38768\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/quick-copy-path-600x304.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/quick-copy-path-300x152.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/quick-copy-path-768x389.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/quick-copy-path.jpg 995w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>NOTE: If you write wrong value for &#8216;Exec&#8217;, the app won&#8217;t appear in system start menu (Show Applications) search results.<\/p>\n<h3>Remove PyCharm:<\/h3>\n<p>To remove the IDE, run the command below accordingly. Replace <code>community<\/code> to <code>professional<\/code>, or <code>Community<\/code> to <code>Professional<\/code> for Pro edition.<\/p>\n<p>Remove the Snap package via command:<\/p>\n<pre>sudo snap remove pycharm-community<\/pre>\n<p>To remove the Flatpak package:<\/p>\n<pre>flatpak uninstall --delete-data com.jetbrains.PyCharm-Community<\/pre>\n<p>And, remove the tarball package via command:<\/p>\n<pre>rm -R ~\/.local\/bin\/pycharm-* ~\/.local\/share\/applications\/pycharm-*.desktop<\/pre>","protected":false},"excerpt":{"rendered":"<p>JetBrains announced the 2022.1 release of its PyCharm IDE few days ago. Here&#8217;s how to install in Ubuntu in different ways. What&#8217;s New in PyCharm 2022.1 This is the first release of the IDE in 2022. Release highlights include (see release note for details): Basic http authentication support for custom package repositories Enhanced code completion [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":38760,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2045],"class_list":["post-38759","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-python"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/38759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=38759"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/38759\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/38760"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=38759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=38759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=38759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}