how to setup pycharm for python code example

Example: install python interpreter pycharm

The Python Interpreter selector is located on the status bar. 
It is the most convenient and quickest way to switch the Python 
interpreter. Just click it and select the target interpreter.

:::::::::::::Configure a system Python interpreter::::::::
1. Ensure that you have downloaded and installed Python on your computer.

	If you are on Windows, you can download Python from the Microsoft 
	Store and install it as a Python interpreter. Once the Python 
	application is downloaded from the Microsoft Store, it becomes 
	available in the list of the Python executables.

	Python interpreter installed from the Windows store
	Note that interpreters added from the Microsoft Store installations 
    come with some limitations. Because of restrictions on Microsoft 
    Store apps, Python scripts may not have full write access to shared 
    locations such as TEMP and the registry.

2. Do one of the following:
	Click the Python Interpreter selector and choose Add Interpreter.

	Press Ctrl+Alt+S to open the project Settings/Preferences and go 
    to Project <project name> | Python Interpreter. Then click the The 
    Configure project interpreter icon and select Add.

	Selecting the Add command to create a new Python interpreter


3. In the left-hand pane of the Add Python Interpreter dialog, select 
	System Interpreter.


4. In the Interpreter field, type the fully-qualified path to the 
	required interpreter executable, or click the Browse button and in 
    the Select Python Interpreter dialog that opens, choose the desired 
    Python executable and click OK.

	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).

	Downloading Python when installing the system interpreter You will 
    need admin privileges to install, remove, and upgrade packages for 
    the system interpreter. When attempting to install an interpreter 
    package through an intention action, you might receive the following 
    error message:

	System Interpreter warning message As prompted, consider using a 
    virtual environment for your project.

5. Click OK to complete the task.