Quickly Set Up a New Python Project in PyCharm – Step‑by‑Step Guide
This step‑by‑step tutorial walks beginners through creating a new Python project in PyCharm, covering project location selection, Conda interpreter configuration, isolated environment creation, Python version choice, Conda executable setup, opening the project, exploring the directory structure, writing and running a simple program, and where to download the free Community edition.
This article provides a detailed, step‑by‑step guide to creating a new Python project in PyCharm and configuring its environment, including selecting the project location, choosing a Conda interpreter, creating an isolated environment, picking the Python version, and setting the Conda executable.
1. Create a New Python Project
Use PyCharm’s File → New Project… menu.
2. Configure the Environment
1. Project Location
Select the directory where the project will be stored.
2. Python Interpreter
Choose Conda as the interpreter.
3. Create Isolated Environment
Select Conda to create an isolated environment for the project (a new environment will be generated automatically).
4. Choose Python Version
Select the desired Python version.
5. Conda Executable
Point to the Conda executable located in the condabin folder of the Conda installation (different file extensions for Mac and Windows).
Relative path example: miniconda3/condabin/conda
3. Open Project in a New Window
After clicking Create, select “New Window” in the prompt.
4. Project Directory Structure
View the directory layout after the project opens.
5. Write and Run a Simple Program
Edit main.py to add your code, then click the green triangle to run.
After execution, the output “Hello World” appears.
6. PyCharm Download
The Community edition is free and sufficient for most users; the Professional edition requires a license.
Download links:
[1]https://www.jetbrains.com/pycharm/download
[2]https://download-cdn.jetbrains.com/python/pycharm-community-2024.2.1-aarch64.dmg
Python Programming Learning Circle
A global community of Chinese Python developers offering technical articles, columns, original video tutorials, and problem sets. Topics include web full‑stack development, web scraping, data analysis, natural language processing, image processing, machine learning, automated testing, DevOps automation, and big data.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.