โ Step 1: Check if Python is Installed Correctly
1๏ธโฃ Open Command Prompt (CMD)
- Press
Win + R, type cmd, and press Enter.
2๏ธโฃ Type the following command and press Enter:
python --version
OR
py --version
๐น If you see a Python version (e.g., Python 3.x.x), Python is installed correctly.
3๏ธโฃ If CMD still shows "Python was not found", continue to Step 2.
โ Step 2: Add Python to System PATH (Manual Method)
If Python is installed but not recognized in CMD, you need to add it to the system PATH manually.
1๏ธโฃ Find Python Installation Path:
- Open File Explorer (
Win + E). - Go to
C:UsersYourUsernameAppDataLocalProgramsPythonPython3X(or wherever Python was installed). - Copy the full path (Example:
C:Python310orC:UsersYourNameAppDataLocalProgramsPythonPython310).
2๏ธโฃ Add Python to System Environment Variables:
- Press
Win + R, type sysdm.cpl, and press Enter. - Go to the Advanced tab โ Click Environment Variables.
- Under System Variables, find Path, then click Edit.
- Click New, then paste your Python path (e.g.,
C:Python310). - Click OK โ OK โ Restart your computer.
3๏ธโฃ Test Again in CMD:
- Open Command Prompt and type:shCopyEdit
python --version - If Python is recognized, you're good to go! ๐
โ Step 3: Install Required Python Packages
Once Python is working, install dependencies needed for the script:
1๏ธโฃ Open Command Prompt
2๏ธโฃ Run the following command to install required Python libraries:
pip install openai pandas requests
โ This will install OpenAI API, Pandas (for CSV handling), and Requests (for HTTP requests).
โ Step 4: Run the Python Script
Now that Python is installed, you can run the malware blog post generator script.
1๏ธโฃ Move your Python script (malware_post_generator.py) to a folder (e.g., C:MalwareScripts).
2๏ธโฃ Open Command Prompt and navigate to the script's folder:
cd C:MalwareScripts
3๏ธโฃ Run the script:
python malware_post_generator.py