Page 234 - CTS - CSA TP - Volume 2
P. 234

COMPUTER SOFTWARE APPLICATION - CITS


































           Verify Python Installation:
              1  Open Command Prompt or Terminal:

                 •  On Windows, you can press Win + R, type cmd, and press Enter.
                 •  On macOS or Linux, you can open Terminal.
              2  Check Python Version:
                 •  Type the following command and press Enter:












                 •  This should display the installed Python version.
                 •  You can also check the Python interpreter by typing ‘python’ :










           This will open the Python interpreter, and you can exit it by typing exit().
           Set Up Python Environment:
              1  Install a Code Editor (Optional):
                 •  You may choose a code editor like Visual Studio Code, PyCharm, or Jupyter Notebook for a more
                   convenient development environment.
              2  Create a Virtual Environment (Optional but recommended):
                 •  Open the command prompt or terminal and navigate to your project directory.

                 •  Run the following commands to create and activate a virtual environment:



                                                           219
 CITS : IT & ITES - Computer Software Application - Exercise 120   CITS : IT & ITES - Computer Software Application - Exercise 120
   229   230   231   232   233   234   235   236   237   238   239