--- name: python-installation description: Use this skill when working with Python installation. Triggers when user mentions Python installation or setup. --- # Python Installation ## What this is Python is a high-level, interpreted programming language that is widely used for various purposes. The installation of Python is the first step in using the language for development. The installation process involves downloading and installing the Python interpreter and other required components. ## Installation The installation command for Python is: `python -m pip install --upgrade pip` for upgrading pip, then download and install the latest version of Python from the official Python website: https://www.python.org/downloads/. ## Key concepts The key concepts in Python installation include: - **Python Interpreter**: The Python interpreter is the software that runs Python code. - **PIP**: PIP is the package installer for Python, and it comes bundled with Python. ## Correct usage patterns To install a package using PIP, use the following command: `pip install package_name`. For example, to install the requests library, use: `pip install requests`. ## Common mistakes to avoid One common mistake to avoid is not upgrading PIP before installing packages. This can lead to compatibility issues and errors. ## File and folder conventions Python files typically have a `.py` extension and live in a directory with a name that describes the project or module. Configuration files for Python projects are often named `setup.py` or `requirements.txt` and are located in the root directory of the project.