If you've ever installed Python on a Windows machine but encountered issues running Python commands in the terminal, you might be facing a missing Path variable entry. Recently, I solved this issue by manually adding Python to the Windows environment variables. Here’s how you can do it too. The Problem After installing Python, you might open the Command Prompt and type: python --version and receive an error stating that Python is not recognized as an internal or external command. This happens when Python’s installation path isn’t added to the system’s environment variables. The Solution To fix this, follow these steps: Step 1: Locate the Python Installation Directory Open the Windows search bar and type Python . Click on Open file location to navigate to the installed Python folder. Inside this directory, locate the Scripts folder. The path should look something like this: C:\Users\YourUsername\AppData\Local\Programs\Python\PythonXX\Scripts (where PythonXX represents your instal...
Journey of seeking knowledge and wisdom