Sorry, you have been blocked
This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.
What can I do to resolve this?
You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.
Cloudflare Ray ID: 7d99dae7cc242d8b • Your IP: Click to reveal 88.135.219.175 • Performance & security by Cloudflare
How to Install PyCharm on Ubuntu 22.04
Installing PyCharm on Ubuntu 22.04
There are three different editions of PyCharm on Ubuntu 22.04. To install a specific edition, you will require various commands that might become very easy if you install them through Snap Store. The installation detail of each method is given below.
Installing PyCharm Professional Edition on Ubuntu 22.04
The PyCharm Professional Edition provides you with a 30-days free trial, and after then, you will need to purchase its professional edition. With this addition, you will get different advanced features like remote development capabilities, python web framework, database support and much more.
If you don’t have a problem buying the professional edition, you can then install this edition from Snap Store using the following command.
Once the installation is successful, you can then open the PyCharm Professional Edition from the application search on Ubuntu 22.04.
Then use the following steps to setup the PyCharm:
Step 1: Accept the user agreement by checkbox the highlighted option and then click on the “Continue” button.
Step 2: This step is optional you can pick the one according to your choice. Here, we select “Don’t send”.
After this step, the PyCharm Professional screen will appear.
Step 3: Now, in this step, checkbox the highlighted option and click on the “Trust Project” button to trust the Ubuntu source.
Step 4: Now, this step requires the activation license key. If you want to purchase the license, you can click on the “JB Account” option. If you already have Activation code then go with the “Activation Code” option.
We are leaving this step entirely up to you. You can choose the 30-day trial version by selecting the “Start trial” option, create an account on JetBrains and then click on the “Exit” button to complete the process.
Now, you can use the PyCharm Professional Edition on a 30-day trial, after which you will need to purchase it for later use.
Removing PyCharm Professional Edition from Snap Store
To remove PyCharm Professional Edition from Snap Store, use the following command.
Installing PyCharm Community Edition on Ubuntu 22.04
If you want to use the free PyCharm Community Edition, you can install it from the Snap Store using the following command.
Once the installation completes, open the PyCharm Community on Ubuntu 22.04 through the application search bar.
Accept the PyCharm license agreement by following the highlighted guidelines in the below image.
This runs the PyCharm Community Edition on desktop.
Removing PyCharm Community Edition from Snap Store
To remove PyCharm Community Edition from Ubuntu 22.04, use the following command.
Installing PyCharm Educational Edition on Ubuntu 22.04
If you want to teach people programming skills, you can pick PyCharm Educational Edition which is quite helpful for the beginners to learn coding from scratch. To install it on Ubuntu 22.04, you can use the following snap installation command.
Run the PyCharm Educational Edition from the application search bar.
Confirms the license agreement.
This will run the IDE on the desktop.
Removing PyCharm Educational Edition from Snap Store
The removal of PyCharm Educational Edition is successful once you run the following command.
Conclusion
PyCharm is an excellent platform to program and debug Python codes. It allows you to master the Python language and become a professional programmer. There are multiple editions of PyCharm and if you are eagerly interested in beginning your professional journey, you should pick the one and install it on Ubuntu 22.04 through the snap store using the above guidelines.
About the author
Awais Khan
I’m an Engineer and an academic researcher by profession. My interest for Raspberry Pi, embedded systems and blogging has brought me here to share my knowledge with others.
PyCharm 2022.3 Released! How to Install in Ubuntu 22.04 | 20.04
PyCharm Python IDE 2022.3 was finally released a few days ago. Here are the new features and how to guide for installing it in Ubuntu Linux.
Changes in PyCharm 2022.3 include:
- Ability to search, install, and delete Conda packages through the Python Packages tool window
- New Settings Sync plugin
- export DataFrames in various formats (for professional only)
- The Quick Documentation popup now displays the Attributes section of the class docstrings
- Support await keyword in the built-in Python Console.
- Experimental asyncio support for the debugger.
- Vitest support (for professional only)
- New project templates for Next.js and Vite (for professional only)
- Redis support (for professional only)
How to Install PyCharm 2022.3 in Ubuntu Linux
There are 3 ways to install the Python IDE in Ubuntu and other Linux: Snap, Flatpak, and portable tarball. Just choose the one that you prefer.
Option 1: PyCharm Snap package
The easiest way to get the IDE is using the official Snap package. It is a containerized software package that run in sandbox, and updates automatically.
For Ubuntu 20.04, Ubuntu 22.04 and higher, simply search for ‘PyCharm’ then install either community or professional edition from Ubuntu Software.
Or, run command in terminal to install the Snap package:
Replace pycharm-community with pycharm-professional for the professional edition.
Option 2: PyCharm Portable package (tar.gz)
The website also provides official tar.gz package for downloading at the link below:
Then open the folder that stores the tarball (usually Downloads folder), right-click on blank area and select ‘Open in Terminal‘.
When terminal opens, run the commands below one by one to install it for all system users (replace community with professional accordingly):
- First, create a folder under ‘/opt’ to store the source:
- Then extract the tarball into that folder:
- Finally, create & edit shortcut icon file for the IDE package:
The last command should open an empty text editor window. There paste the lines below and save it.
[Desktop Entry]
Name=PyCharm Community Edition
Comment=Lightweight IDE for Python & Scientific development
Exec=/opt/pycharm-community/bin/pycharm.sh
Icon=/opt/pycharm-community/bin/pycharm.svg
Terminal=false
Type=Application
Categories=Development;IDE;
StartupWMClass=jetbrains-pycharm
After saving the file, you should be able to search for and launch PyCharm IDE from start menu or ‘Activities’ overview, depends on your desktop environment.
Option 3: PyCharm Flatpak
The open-source community also maintains the PyCharm packages as Flatpak package, which is also containerized package runs in sandbox.
First, open terminal by pressing Ctrl+Alt+T keys on keyboard. When it opens, run command to install the daemon package:
Next, run command to install PyCharm Community as Flatpak:
Or, install the professional version as Flatpak via command:
Uninstall PyCharm
For the Snap package, remove it either via Ubuntu Software or by running command in terminal:
For the portable package, remove the source as well as shortcut file via command:
And, remove the Flatpak package via command:
For the professional edition, remove pycharm-community in the commands above with pycharm-professional .
I’m a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to remind me outdated tutorial! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1
- The Lightweight Midori.
- Fix TypeCatcher (Google Fonts.
Be the first to start the conversation.
Leave a Reply Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
How to Install PyCharm on Ubuntu 22.04 | 20.04
If you’ve been seeking a powerful, versatile Integrated Development Environment (IDE) for Python, look no further than PyCharm. Developed by JetBrains, this industry-leading IDE is specially tailored to enhance productivity and efficiency in the Python coding experience.
Core Features
- Intelligent Code Editor: PyCharm offers a smart editor that understands Python syntax and semantics, providing a seamless coding experience with on-the-fly error checking, quick-fixes, and automated code refactoring.
- Navigating Code with Ease: PyCharm makes navigating complex code easy, allowing you to jump to any method, function, variable, or even a class definition in your code base with just a click.
- Robust Debugging Tools: PyCharm boasts an impressive suite of debugging tools including an interactive debugger, breakpoints, and an evaluation tool to inspect your variables.
- Integrated Testing Support: With PyCharm, unit testing becomes an integral part of your development process. It supports Python’s standard unittest module, pytest, and nose, among others.
Advanced Features
- Built-in Terminal and Version Control Systems: PyCharm incorporates an integrated terminal and supports numerous VCS including Git, SVN, Mercurial, and more.
- Django, Flask, and Pyramid Support: PyCharm offers first-class support for several Python web development frameworks, making it an excellent choice for web developers.
- Remote Development Capabilities: PyCharm supports Docker and Vagrant, enabling you to manage your projects and applications in isolated environments.
- Database Support: PyCharm includes a Database & SQL editor that supports many popular databases, allowing you to work with databases right from the IDE.
- Customizable and Extendable: PyCharm is highly customizable. Its extensive range of plugins allows you to tailor the IDE to fit your unique workflow.
PyCharm comes available in three distinct editions to cater to a variety of users: the Community Edition (free), the Professional Edition (paid), and the Educational Edition (paid).
Our forthcoming guide will detail the installation of PyCharm on two popular Ubuntu distributions: Ubuntu 22.04 Jammy Jellyfish and Ubuntu 20.04 Focal Fossa LTS. We’ll also cover installations on other short-term releases that are still within their support lifespan. Specifically, we will discuss three primary installation methods: via APT from a trusted JetBrains products maintainer, Snap, and Flatpak using the Flathub third-party repository. So, let’s dive in!
Table of Contents
Section 1: Install PyCharm via APT PPA
The Advanced Packaging Tool (APT) is the go-to package management system for Ubuntu and other Debian-based distributions. It offers high-level commands for handling packages, enhancing efficiency in software management. We’ll be using this powerful tool to install PyCharm.
Step 1: Update and Upgrade Ubuntu System
Before we begin, it’s important to have your Ubuntu system’s local package database updated. This allows your system to gather the most recent information about the available packages and their versions from Ubuntu’s repositories. The following command will accomplish this:
With the package database updated, we should now upgrade the system. This operation ensures all installed software packages on your system are updated to their latest versions:
Step 2: Install Required Packages
Next, we install the necessary packages for our operation, which include dirmngr , ca-certificates , software-properties-common , apt-transport-https , curl , and lsb-release . These tools facilitate the addition and management of repositories, file transfers, and execution of various other tasks:
Step 3: Import JetBrains PPA by Jonas Groeger
At this point, we’re ready to add the JetBrains Personal Package Archive (PPA) to our system’s list of repositories. This allows APT to directly access PyCharm from the JetBrains’ PPA.
To ensure the authenticity of the packages from the JetBrains’ repository, we import the GPG key. GPG, short for GNU Privacy Guard, is an open standard tool used for secure communication. Importing the GPG key ensures that the packages we’re getting from the repository are genuinely provided by JetBrains:
With the GPG key imported, we’re set to add the JetBrains PPA to our system’s list of package sources:
Step 4: Refresh APT Packages Index
Having added a new repository, it’s vital that we update our APT package database once more to fetch the package information from the newly added JetBrains PPA:
Step 5: Install PyCharm
With our system ready and all the prerequisites in place, we can now install PyCharm. There are three available options from this particular PPA: PyCharm Community, Education, and Professional editions.
Most users opt for the Community edition as it’s free. However, the Education and Professional editions, while paid, offer more features. Choose the edition that suits your needs and use the corresponding command below to install it:
For the Community Edition:
For the Education Edition:
For the Professional Edition:
With that, you’ve successfully installed PyCharm on your Ubuntu system using the PPA APT method. Next, alternative Snap or Flatpak methods may suite you preference better which will be featured in two separate sections.
Section 2: Install PyCharm via Snap
The Snap package manager is a robust alternative for installing PyCharm IDE. It offers the convenience of providing the most recent versions of all three PyCharm editions: Community, Professional, and Educational.
Step 1: Re-install Snapcraft (If Necessary)
For users who may have uninstalled Snapcraft previously, a reinstallation is required. This is accomplished with the following command:
After successful reinstallation, it’s time to kickstart the snapd service and set it to start automatically whenever your system boots up:
Step 2: System Reboot (If Necessary)
Before proceeding further, it’s a good practice to reboot your computer. This ensures all the necessary paths for Snapcraft are properly generated. Skipping this step could potentially lead to errors while using Snapcraft. If such errors do appear, make sure to return to this step and perform a system reboot:
Remember: If Snap was installed, which in most cases it should be, this should be skipped.
Step 3: Enable Classic Snap Support
Some Snap packages utilize a mode called ‘classic’, which grants the application more permissions on the host system. In order to support such packages, a symbolic link needs to be created using the following command:
Step 4: Update Core Files
At this juncture, users who have just reinstalled Snapcraft or those who already had it installed need to update the core files to their latest versions. Use the command below to ensure everything is up-to-date:
Step 5: Install PyCharm
With all preparations complete, it’s time to install PyCharm. Based on your needs, choose from the Community, Professional, or Educational editions. The Community edition is free and generally suffices for most users. Here are the respective commands for each version:
Community Edition:
Professional Edition:
Educational Edition:
Section 3: Install PyCharm via Flatpak and Flathub
Flatpak, a potent package manager, provides yet another avenue for installing PyCharm IDE. While not pre-installed by default due to its competition with Snaps, it’s widely adopted and arguably more mature in other Linux distributions.
Step 1: Enable Flathub
Our first action is to enable Flathub, a sizable app store with a collection of Flatpak applications. This action can be executed using the following command:
With this command, you’re essentially adding the Flathub repository to your Flatpak setup. If the Flathub repository is already present, the —if-not-exists option prevents the command from returning an error.
Step 2: Install PyCharm
Flathub currently supports the Community and Professional editions of PyCharm; select the option you wish to install with one of the following commands:
Community Edition:
Professional Edition:
Note: If your system does not already have Flatpak installed, please follow our comprehensive guide on “How to Install Flatpak on Ubuntu” to get the most recent supported version.
Section 4: Executing PyCharm Post-Installation
After the successful installation of the PyCharm IDE, the next step involves executing the program. Depending on your preference or the specific circumstances of your system configuration, there are several methods to kickstart PyCharm.
Command-Line Interface (CLI) Method
Perhaps the most direct route to launching PyCharm is through the terminal. Depending on how you’ve installed PyCharm, your command might differ slightly.
APT Launch Commands
To initiate the different versions of PyCharm that have been installed via the APT package manager, use these commands:
PyCharm Community
PyCharm Professional
PyCharm Education
Snap Launch Commands
If you’ve installed PyCharm through the Snap package manager, you’ll want to use the following commands to launch:
PyCharm Community
PyCharm Professional
PyCharm Educational
Flatpak Launch Commands
For those who have installed PyCharm via Flatpak, use these commands:
PyCharm Community
PyCharm Professional
GUI Method
While the command-line interface can be a swift method to start PyCharm, it might not always be the most practical. If you prefer, you can also launch PyCharm using the graphical user interface (GUI) of your system.
- Access the Activities overview of your desktop.
- Proceed to Show Applications .
- Search for PyCharm , and pick the specific version you’ve installed.
To sum up, regardless of the installation method used, launching PyCharm should be a straightforward process
Example of application icons for PyCharm on Ubuntu Linux:
Section 5: Tips on Getting Started with PyCharm Community on Ubuntu Linux
Once you’ve installed PyCharm Community on your Ubuntu Linux desktop and are ready to embark on your programming projects, there are a few tips and tricks that can enhance your experience with this versatile IDE. Below, we’ll explore some of these strategies, focusing on the nuances unique to Linux-based installations.
Step 1: Familiarize Yourself with the User Interface
PyCharm’s user interface (UI) is intuitive yet packed with features. It’s helpful to familiarize yourself with the layout before diving into coding.
- Project Window: On the left side of the PyCharm window, you’ll find the Project window. This pane presents the file structure of your current project, giving you easy access to all your files and directories.
- Code Editor: The central portion of the UI is the Code Editor. This is where you’ll write and modify your code.
- Navigation Bar: Located at the top of the PyCharm window, the Navigation Bar provides quick access to all your project files and PyCharm features.
- Status Bar: At the bottom of the UI is the Status Bar. It displays the status of your project and your IDE, and can show warnings and errors.
Step 2: Harness the Power of Shortcuts
Keyboard shortcuts can drastically increase your productivity. PyCharm includes a number of useful shortcuts designed to speed up your workflow.
- Quick Search: Use the Ctrl+Shift+A shortcut to access the Search Everywhere function. This lets you quickly find files, actions, settings, and more within PyCharm.
- Code Generation: With the Alt+Insert shortcut, you can automatically generate code snippets, such as constructors and getters/setters.
- Quick Documentation: Use Ctrl+Q to display quick documentation for the class or method under the cursor.
Step 3: Customize Your PyCharm Environment
One of the great aspects of PyCharm Community is its flexibility. You can customize your IDE to fit your personal coding style.
- Themes: PyCharm comes with several built-in themes that you can switch between to fit your mood or work environment. Navigate to File > Settings > Appearance & Behavior > Appearance to change your theme.
- Code Style: You can adjust the way PyCharm formats your code under File > Settings > Editor > Code Style . This includes settings for tab size, indentation, and line wrapping.
- Keymap: If you’re not comfortable with the default keyboard shortcuts, you can customize them under File > Settings > Keymap .
Step 4: Utilize PyCharm’s Coding Assistance
PyCharm Community offers intelligent coding assistance that goes beyond simple syntax highlighting.
- Autocomplete: PyCharm has a powerful autocomplete feature that predicts what you’re going to type next. Simply start typing, and PyCharm will provide suggestions.
- Live Templates: Live Templates are predefined code snippets that you can insert into your code by typing a short abbreviation and pressing Tab .
- Refactoring Tools: PyCharm provides various refactoring tools that can help you improve your code structure without changing its behavior.
By employing these tips, you can make the most of PyCharm Community on your Ubuntu Linux desktop.
Section 6: Administering PyCharm on Ubuntu Linux
After successfully installing and using PyCharm on Ubuntu Linux, there might come a time when you need to update or even remove the IDE from your system. In this section, we delve into the processes of updating and uninstalling PyCharm.
Updating PyCharm on Ubuntu Linux
Staying updated with the latest version of PyCharm is a good practice as it brings along new features, improvements, and bug fixes. Depending on the third-party package manager you chose for installing PyCharm, the update command will differ.
APT Package Manager Update Method
In case you used APT for installation, type in the following commands into your terminal:
These commands will not only check for updates for PyCharm but all other applications installed using APT.
Flatpak Update Method
For Flatpak users, updating is straightforward. Simply run the following command:
Snap Update Method
For those who installed PyCharm through Snap, use this command to perform an update:
Uninstalling PyCharm from Ubuntu Linux
There might be instances where you no longer need PyCharm on your system. In such cases, you can uninstall it using the corresponding commands for your installation method.
APT Package Manager Remove Method
If you installed PyCharm using APT, you can uninstall it by entering the following commands in your terminal:
To remove PyCharm Community:
To remove PyCharm Professional:
To remove PyCharm Education:
Moreover, if you do not plan on reinstalling PyCharm or using the JetBrains PPA for other products, you can remove the repository and GPG key with these commands:
Flatpak Remove Method
If you installed PyCharm via Flatpak, use the following commands to uninstall:
To remove PyCharm Community:
To remove PyCharm Professional:
Snap Remove Method
If your installation method was Snap, you can use the following commands to remove PyCharm:
To remove PyCharm Community:
To remove PyCharm Professional:
To remove PyCharm Educational:
Conclusion and Summary on Installing PyCharm on Ubuntu Linux
PyCharm is a versatile and powerful IDE, and it proves to be an invaluable tool for Python developers working on Ubuntu Linux. The convenience of installing it through various package managers, the simplicity of launching it from command line or GUI, the ability to keep it updated, and the process of removing it when no longer needed – all of these aspects make PyCharm a highly adaptable tool for developers on Ubuntu Linux. Whether you are a seasoned programmer or a novice just starting out, PyCharm on Ubuntu Linux delivers a combination of user-friendly interface and advanced functionality that caters to all programming needs.
Additional Links and Resources
These official resources can prove useful in your journey of learning PyCharm on Ubuntu Linux. They provide additional insights, detailed documentation, and extensive support to help you get the most out of this powerful IDE.