Python not recognized as an internal or external command error solution in Windows - Tech Blogs

    Hello , pretty meeting after a pretty long time and that too on a pretty interesting and frequently faced problem by Python installers.

First get a view of the problem which is faced.




For solving this error, we will have to add Python to path of the Command Prompt.

So let's cover it.




1. Paste - C:\Users - in File Explorer Ribbon Bar.

2. Go to your user folder.




3. Click on File menu in the ribbon.


4. Now click on 'Change folder and search options'



5. Now click on the 'View' menu and Turn the "Hidden Files and Folders" to "Show hidden files, folders and drives" as shown in the figure.



6. Now, you'll see some files and folders which you didn't see earlier, those are hidden files and folders. Among them, you'll see a folder named 'App Data'. Open it.


7. Navigate to 'Local' folder in App Data.


8. Go for the 'Programs' folder in Local.

9. 'Python' folder is to be opened.

10. Open 'Python310' folder or if you have any other version like you'll get 'Python37' named folder if you install Python 3.7, 'Python28' named folder if you install Python 2.8 and like that only...

11. Right click in the 'Python310' folder after opening and click on properties.


12. Copy the path of this folder by clicking on the Ribbon.


13. You can now turn the Hidden files and folders" option again to "Don't show".

14. Search 'Environment Variable' in Windows Search.


15. Go to 'Environment Variables' option there.


16. Click on 'Path' option present there in System Variables.


17. Click on 'New' option present in there and paste the copied path of 'Python310' folder in that box. You can see that I have already pasted the path in the last box.







Now the error must have been resolved.

Thank You


Comments

Popular posts from this blog

What are Shells and Shell Scripting?