How to Install PyCharm on Ubuntu 24.04
Learn how to install PyCharm on Ubuntu 24.04 LTS. Step-by-step tutorial covering Snap installation, manual tarball setup, desktop launcher, and Python venv.

6 min read
Learn how to install PyCharm on Ubuntu 24.04 LTS. Step-by-step tutorial covering Snap installation, manual tarball setup, desktop launcher, and Python venv.
- Prerequisites and Supported Releases
- Step 1: Updating System Packages and Installing Python 3 and venv
- Step 2: Method 1: Installing PyCharm Community Edition via Snap
PyCharm, engineered by JetBrains, is the dedicated integrated development environment (IDE) built specifically for professional Python developers, data scientists, and web engineers. Providing unmatched developer ergonomics, PyCharm includes intelligent code completion, real-time error highlighting, automated refactoring pipelines, integrated unit testing runners, visual debugging, and seamless database tooling.
Developing Python applications on Ubuntu 24.04 paired with PyCharm combines a fast, stable Linux workstation with an IDE optimized for modern Python 3.12 syntax, asynchronous coroutines, and containerized development. Learning how to install pycharm on ubuntu 24.04 equips developers with a world-class Python development environment featuring smart code completion, on-the-fly code analysis, and integrated virtual environment management.
In this comprehensive step-by-step tutorial, we demonstrate how to install PyCharm on Ubuntu 24.04 LTS (Noble Numbat). We cover installing Python 3 and virtual environment packages, deploying PyCharm Community or Professional via Canonical's official Snap repository, installing standalone binary archives in /opt/pycharm, creating GNOME desktop launchers, configuring Python virtual environments, and tuning inotify file watch limits for large codebases.
Install and configure PyCharm (Community or Professional Edition) on Ubuntu 24.04 LTS using the official Snap package or standalone tarball with Python virtual environment integration.
Prerequisites and Supported Releases
This guide is thoroughly verified on Ubuntu 24.04 LTS (Noble Numbat). The instructions apply cleanly to cloud instances (AWS EC2, Google Compute Engine, DigitalOcean, Hetzner), bare-metal servers, and local virtual machines.
Before proceeding, ensure you have the following requirements satisfied:
- A desktop or laptop workstation running
Ubuntu 24.04 LTS(64-bit architecture). - A non-root user account configured with administrative
sudoprivileges. - At least
4 GB of RAM(8 GB to 16 GB recommended for data science and Django development). - At least
5 GB of free disk spacefor IDE installation, caches, and Python packages.
Step 1: Updating System Packages and Installing Python 3 and venv
Before installing PyCharm, ensure your local APT package repositories are up to date and your system Python environment contains the necessary developer libraries.
Ubuntu 24.04 includes Python 3.12 as its default system interpreter. Install the python3-venv, python3-pip, and git packages using APT.
Verify the installed Python version and confirm that the virtual environment module is accessible.
# Update APT package repositories
sudo apt update && sudo apt upgrade -y
# Install Python 3, venv, pip, and Git
sudo apt install -y python3 python3-venv python3-pip git curl
# Verify Python version
python3 --version
Step 2: Method 1: Installing PyCharm Community Edition via Snap
The recommended and most straightforward method to install PyCharm on Ubuntu is through the official Snap package maintained directly by JetBrains.
The Community Edition is 100% free and open-source under the Apache 2.0 license, offering complete support for pure Python development, virtual environments, Git integration, and debugging.
Install PyCharm Community using the snap command with the --classic confinement flag.
The installation takes a few moments as the IDE container downloads.
# Install PyCharm Community Edition via Snap
sudo snap install pycharm-community --classic
# Verify installed package details
snap list pycharm-community
Step 3: Installing PyCharm Professional Edition via Snap (Alternative)
If your workflows require enterprise web frameworks (such as Django, FastAPI, Flask), remote debugging over SSH, Docker container runtimes, scientific notebooks (Jupyter), and integrated SQL database tools, install the Professional Edition.
JetBrains provides a 30-day free trial for PyCharm Professional, after which a commercial license or student/open-source educational license is required.
Execute the following command to install the Professional Edition using Snap.
# Install PyCharm Professional Edition via Snap
sudo snap install pycharm-professional --classic
# Verify installed package details
snap list pycharm-professional
Step 4: Method 2: Manual Standalone Installation via Official Tarball
If your enterprise restricts the Snap daemon or requires pinpoint control over multiple parallel IDE versions, you can install PyCharm using the official standalone tarball from JetBrains.
Download the latest PyCharm Community Linux archive from the JetBrains distribution server into /tmp.
Extract the archive into the /opt/ system directory and create a symbolic link in /usr/local/bin/ so the IDE can be launched from any terminal prompt.
# Download PyCharm Community tarball
cd /tmp
wget https://download.jetbrains.com/python/pycharm-community-2024.1.4.tar.gz -O pycharm.tar.gz
# Extract archive into /opt/pycharm
sudo mkdir -p /opt/pycharm
sudo tar -xzf pycharm.tar.gz -C /opt/pycharm --strip-components=1
# Create system symbolic link
sudo ln -sf /opt/pycharm/bin/pycharm.sh /usr/local/bin/pycharm
# Clean up downloaded archive
rm -f /tmp/pycharm.tar.gz
Step 5: Creating a GNOME Desktop Launcher for Standalone PyCharm
If you performed the manual binary installation in Step 4, create a standard desktop launcher so that PyCharm integrates with your GNOME application menu, dashboard, and dock.
Create a desktop file named pycharm.desktop inside /usr/share/applications/.
Define the application metadata, execution path (/opt/pycharm/bin/pycharm.sh), and icon path (/opt/pycharm/bin/pycharm.svg).
Update the desktop application database.
# Create desktop launcher configuration
sudo bash -c 'cat <<EOF > /usr/share/applications/pycharm.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=PyCharm Community
Comment=Python IDE for Professional Developers
Exec=/opt/pycharm/bin/pycharm.sh %f
Icon=/opt/pycharm/bin/pycharm.svg
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-pycharm-ce
Categories=Development;IDE;Python;
EOF'
# Refresh desktop database
sudo update-desktop-database
Step 6: Launching PyCharm and Completing the Initial Setup
Launch PyCharm by clicking the PyCharm icon in your Ubuntu Applications dashboard, or by typing pycharm or pycharm-community in your terminal.
On first launch, review and accept the JetBrains User Agreement.
Choose your preferred UI theme (Darcula dark theme or Light theme) and configure your keyboard mapping scheme.
On the Welcome Screen, you can create a new project, open an existing codebase, or clone a repository directly from GitHub or GitLab.
# Launch PyCharm from terminal in background
pycharm-community &
# Verify running PyCharm process
pgrep -l -f pycharm
Step 7: Configuring Python Virtual Environments in PyCharm
In modern Python development on Ubuntu 24.04, PEP 668 enforces that third-party packages must be installed inside isolated virtual environments rather than the global system Python.
When creating a new project in PyCharm, select New environment using Virtualenv.
Ensure the Base interpreter points to /usr/bin/python3.12 and specify your project location.
PyCharm automatically creates the .venv directory, provisions pip, and sets the active project SDK.
Project Settings: File -> Settings -> Project: <name> -> Python Interpreter
Interpreter Type: Virtualenv
Base Python: /usr/bin/python3.12
Location: <project_dir>/.venv
Auto-activate terminal: Enabled
Step 8: Tuning Inotify File Watcher Limits for Large Codebases
Large Python projects with extensive virtual environments, Node.js packages, and Git histories can exceed the Linux kernel's default inotify directory watcher limit (typically 8,192).
When this occurs, PyCharm displays a warning: 'External file changes sync may be slow: File watch limit was reached'.
Increase the file watcher limit permanently by creating /etc/sysctl.d/60-pycharm.conf and setting fs.inotify.max_user_watches = 524288.
Apply the settings immediately without rebooting.
# Increase inotify file watch limit
echo "fs.inotify.max_user_watches = 524288" | sudo tee /etc/sysctl.d/60-pycharm.conf
# Apply the new sysctl parameters
sudo sysctl -p /etc/sysctl.d/60-pycharm.conf
# Verify updated limit
cat /proc/sys/fs/inotify/max_user_watches
Troubleshooting and Common Errors
When configuring Ubuntu servers, unexpected permission errors, network timeouts, or lock contention can occur. Review these common issues and verified resolutions:
PyCharm terminal fails to activate virtual environment automatically
Resolution: Open Settings > Tools > Terminal, and verify that Activate virtualenv is checked. Ensure the Shell path is set to /bin/bash.
Package installation fails with 'externally-managed-environment' error
Resolution: This occurs if you attempt to install packages globally with pip. In PyCharm, ensure you have an active Virtualenv interpreter selected under Settings > Project > Python Interpreter before installing packages.
PyCharm fails to start with 'Cannot find bundled Java runtime'
Resolution: Ensure the jbr directory exists in your manual PyCharm extraction, or explicitly export export PYCHARM_JDK=/usr/lib/jvm/java-21-openjdk-amd64 in your ~/.bashrc.
Security Best Practices and Hardening
Never execute PyCharm or Python build scripts with root or sudo privileges; running IDEs as root creates severe filesystem permission conflicts.
Always inspect third-party packages in requirements.txt or pyproject.toml before installing them into your virtual environment.
Store API tokens, database passwords, and cloud credentials in .env files and add .env to your .gitignore file.
Keep PyCharm and installed plugins updated promptly to address security vulnerabilities in code parsers.
Related Ubuntu Tutorials and Documentation
Deepen your Linux system administration skills with our related production-tested guides:
Authoritative References and Official Documentation

The Linux Command Line, 2nd Edition: A Complete Introduction
Frequently Asked Questions
Quick answers to common questions and configurations
sudo snap refresh pycharm-community.Editorial Disclosure: Website Vidya is supported by our readers. When you purchase hosting, tools, or software through our verified partner links, we may earn an affiliate commission at no extra cost to you. We only recommend solutions we trust and rigorously verify.
Rajesh Ray
I’m Rajesh Rai, a full-stack developer, Linux administrator, and technology enthusiast passionate about making complex technology easier to understand and use.
Most Read Guides
TrendingUbuntu Server Not Booting? 10 Simple Steps to Fix It Fast
How to Create a 3D Button in HTML and CSS: Easy Steps
How to Install Python and Pip on Ubuntu 24.04 LTS
How to Install Nginx on Ubuntu 24.04
How to Install Python on Ubuntu 24.04 LTS
Related Technical Guides
Tested runbooks, server administration walkthroughs, and troubleshooting guides


Join the Conversation & Perspective
Have thoughts, counterpoints, or reflections on this story? Engage directly with fellow readers and editorial contributors.
No comments on this guide yet. Be the first to share your thoughts or ask a question!