charann29 / opensource

105 stars 225 forks source link

pip command not found : streamlit error type2 #346

Open sreeKeerthana22 opened 2 weeks ago

sreeKeerthana22 commented 2 weeks ago

pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

charann29 commented 2 weeks ago
# Resolving "pip is not recognized" Error

This markdown explains how to fix the error "pip is not recognized" and install Streamlit on Windows.

**Error:**
The message "pip is not recognized" indicates that your system doesn't recognize the `pip` command for installing Python packages.

**Solution:**

1. **Install `get-pip`:**
   - Open a web browser and visit the official `get-pip` download page: [https://bootstrap.pypa.io/get-pip.py](https://bootstrap.pypa.io/get-pip.py)
   - Download the "get-pip.py" file for your Python version.
   - Open a **command prompt window** (search for "cmd" in the start menu).
   - Navigate to the folder where you downloaded "get-pip.py" using the `cd` command. For example, if it's in Downloads, type `cd Downloads`.
   - Run the following command to install `pip`:

python get-pip.py


2. **Install Streamlit with pip:**
   - Once `pip` is installed, type the following command in the same command prompt window and press Enter:

pip install streamlit


   This downloads and installs Streamlit.

**Additional Tips:**
- Use the command prompt window, not PowerShell.
- If you encounter further errors, search online for solutions specific to the error message (e.g., "streamlit install error").