timhutton / twitter-archive-parser

Python code to parse a Twitter archive and output in various ways
GNU General Public License v3.0
2.4k stars 111 forks source link

Step 4 issue - Python not found. #146

Open jordanvvvv opened 1 year ago

jordanvvvv commented 1 year ago

I am a a rank beginner at Coding, trying to complete step 4 (or is it step 5?) of the instructions: (Open a command prompt and change directory into the unzipped folder where you just saved parser.py. (Here's how to do that on Windows: Hold shift while right-clicking in the folder. Click on Open PowerShell.)...

but I get the message: "Python was not found..."

Thoughts? thank you Screenshot (420)

timhutton commented 1 year ago

@jordanvvvv This means that the Python executable (python.exe) is not on one of the paths in your PATH environment variable, so Windows cannot find it.

Firstly, work out where Python is installed. You may have specified a location during the installation process or it might be in e.g. C:\Users\<username>\AppData\Local\Programs\Python\Python37-32

Then you can use the full path, e.g.

H:\Tim\twitter_archive_2022-04-28> "c:\Python36-32\python.exe" parser.py

Alternatively you can edit the PATH variable to add the install location, and then try again from a new powershell window.