Here is one approach to get started with streamlit on windows.
1. Create a folder say c:\myproject You can do this on other drives. 2. Open your powershell and cd or Change Directory to that folder 3. PS c:\myproject>python --version to see if you have python installed and what version 4. PS c:\myproject>python -m venv venv Creates venv folder for your virtual environment under c:\myproject with python installed. You only need to create this once. 5. PS c:\myproject>./venv/scripts/activate That will activate your virtual environment, always do this if not yet activated. 6. (venv) PS c:\myproject>python -m pip install -U pip to update your pip 7. (venv) PS c:\myproject>pip install streamlit That will install streamlit in the venv folder. You can now open c:\myproject with your vs code or other editor and write codes in say app.py. 8. (venv) PS c:\myproject>streamlit run app.py to run your streamlit app
Note on (venv) that means your virtual environment is active. Only install lib/modules when venv is active. Installed modules will be found in the venv folder. Also run streamlit when venv is active.