If you run a script, such as "pip", sys.path[0] is the script's directory, not cwd:
https://docs.python.org/3/using/cmdline.html
> If the script name refers directly to a Python file, the directory containing that file is added to the start of sys.path