Skip to content

Instantly share code, notes, and snippets.

@dzinampini
Created November 4, 2019 06:25
Show Gist options
  • Save dzinampini/f8aa018b0ab73857009d2df810571c46 to your computer and use it in GitHub Desktop.
Save dzinampini/f8aa018b0ab73857009d2df810571c46 to your computer and use it in GitHub Desktop.
Getting the Python path and setting variable path
open the Python CMD
>>import os
>>import sys
>>os.path.dirname(sys.executable)
and it will show you the path
@dzinampini
Copy link
Author

to set variable path

Windows Run
Type in sysdm.cpl
Advanced
Environment Variables
Path
Edit
Add the path obtained using above trick
save and restart cmd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment