1. Install Python (if not already installed)
Most Ubuntu versions come with Python pre-installed. To check:
python3 --version
If it's not installed:
sudo apt update
sudo apt install python3 python3-pip
2. Download PyCharm
There are two versions:
- PyCharm Community (Free and Open Source) — Recommended for most students
- PyCharm Professional
Install from JetBrains website
- Go to: https://www.jetbrains.com/pycharm/download/
- Download the
.tar.gz
file for Linux. - Extract the file:
tar -xzf pycharm-community-*.tar.gz
- Navigate to the extracted folder and run:
cd pycharm-community-*/bin
./pycharm.sh
To create a desktop shortcut, PyCharm will offer the option on first launch.
3. Configure PyCharm on First Launch
- Accept terms and choose a UI theme.
- Create or open a Python project.
- Select Python interpreter.
4. Run Your First Python File
- Right-click on your
.py
file →Run
- Output will show at the bottom
Comments
Post a Comment