Follow these steps in order to set up and run the projects for the client. These commands assume you're on Windows (PowerShell or CMD where shown). If Python 3.10 is already available on the machine, skip the installer step and proceed to cloning the repo.
TL;DR — check for Python 3.10 first; if missing, install from the link below. Then clone, create venv, install deps, and run each app.
Run this to list installed Python launchers/versions:
py -0If you see 3.10 in the output, skip the installer step and go straight to step 2.
If you do NOT see 3.10, download & install Python 3.10 (step 1).
Download the Windows x64 installer: https://www.python.org/ftp/python/3.10.0/python-3.10.0-amd64.exe
Run the installer and be sure to:
- Check "Add Python to PATH" (recommended) or ensure pylauncher installs.
- Choose the default options or customize if required.
After installation re-run:
py -0to confirm 3.10 appears.
git clone https://github.com/sameer-at-git/Python-Internship-Assignment.gitChange into the repository root:
cd Python-Internship-AssignmentUse the py launcher with the 3.10 interpreter:
py -3.10 -m venv venvOn Windows (CMD):
venv\Scripts\activate(If PowerShell blocks script execution, run PowerShell as admin and Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser once. Then re-run activation.)
pip install -r requirements.txtcd Algorithmic-Trading-Adventure
python 2.app.pyWhen finished, return to the repo root:
cd ..cd Samsung-Phone-Advisor- Open: https://console.groq.com/keys
- Login (or create an account).
- Create a new API key.
- Copy the API key string (it starts with gsk-...).
Replace the example key below with the real one you copied:
echo GROQ_API_KEY="gsk-dauidgawgdwagdag" > .envNote: If you prefer to edit the file manually, create a file named
.envand add: GROQ_API_KEY="your-real-key-here"
python app.py- If py -3.10fails after installing Python:- Ensure the installer added the pylauncher and Python 3.10 to PATH.
- Try python --versionandpython3 --versionto see other available executables.
 
- Ensure the installer added the 
- If pip install -r requirements.txtfails:- Make sure the venv is activated.
- On Windows, if a package needs compilation and fails, install the Visual C++ Build Tools or use a prebuilt wheel.
 
- If Groq API requests fail, confirm:
- The key saved in .envis correct and active.
- The app reads the .envfile (some apps require restarting after creating.env).
 
- The key saved in 
To stop using the virtual environment:
deactivate