Skip to content

Instantly share code, notes, and snippets.

@shafayeatsumit
Last active April 5, 2018 06:12
Show Gist options
  • Select an option

  • Save shafayeatsumit/01acbac67ab5c9b300ca66a15f475a53 to your computer and use it in GitHub Desktop.

Select an option

Save shafayeatsumit/01acbac67ab5c9b300ca66a15f475a53 to your computer and use it in GitHub Desktop.
vscode commands

pick virtual env

cmd + shift + p

Type : Python: Select Interpreter

pick one from there

understanding path

When you run a command like python or pip, your operating system searches through a list of directories to find an executable file with that name. This list of directories lives in an environment variable called PATH, with each directory in the list separated by a colon: /usr/local/bin:/usr/bin:/bin

Directories in PATH are searched from left to right, so a matching executable in a directory at the beginning of the list takes precedence over another one at the end. In this example, the /usr/local/bin directory will be searched first, then /usr/bin, then /bin.

path and python path

PYTHONPATH is used by the python interpreter to determine which modules to load.

PATH is used by the shell to determine which executables to run.

@shafayeatsumit
Copy link
Author

${workspaceFolder}/.env

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