Create and run your first Python project:
Create a Python project
1.If you’re on the Welcome screen, click New Project. If you’ve already got any project open, choose File | New Project from the main menu.
2.Although you can create projects of various types in PyCharm, in this tutorial let's create a simple Pure Python project. This template will create an empty project.
3.Choose the project location. Click the Browse button button next to the Location field and specify the directory for your project.
4.Also, deselect the Create a main.py welcome script checkbox because you will create a new Python file for this tutorial.
5.Python best practice is to create a virtualenv for each project. In most cases, PyCharm create a new virtual environment automatically and you don't need to configure anything. Still, you can preview and modify the venv options. Expand the Python Interpreter: New Virtualenv Environment node and select a tool used to create a new virtual environment. Let's choose Virtualenv tool, and specify the location of the environment and the base Python interpreter used for the new virtual environment.
When configuring the base interpreter, you need to specify the path to the Python executable. If PyCharm detects no Python on your machine, it provides two options: to download the latest Python versions from python.org or to specify a path to the Python executable (in case of non-standard installation).
Ещё видео!