How to install python setup

Rumman Ansari   Software Engineer   2023-01-22   639 Share
☰ Table of Contents

Table of Content:


  • What you will learn this video:
    1. In this section you will learn that how to install python setup in your local machine
    2. You will learn how to use python shell.
    3. How to run a basic code in python shell.

    What are the different environment variables in Python? And what’s the use of these variables?

    Here are the different environment variables and its uses:
    PYTHONPATH : It is the same as the PATH variable. The Pythoninterpreter uses it to search the module files.
    PYTHONSTARTUP : It stores the path of an initialization script containing the Python code. It gets to run every time the Python interpreter starts.
    PYTHONCASEOK : In Windows, it makes the Python find the first case-insensitive match in an import statement. You need to set it for activation.

    What are the .pyc files?

    The .py files contain the source code of a program, whereas the .pyc file contains the bytecode of your program. We get bytecode after compilation of the .py file (source code). The .pyc files are not created for all the files that you run. It is only created for the files that you import.