4 ms·
You can use -I to have the interpreter not include the directory in sys.path. (This also eschews site-packages and any environment variables.) $ echo 'import o
by cgriswald 4y ago
You can use -I to have the interpreter not include the directory in sys.path. (This also eschews site-packages and any environment variables.)
$ echo 'import os; os.execvp("cowsay", ["-", "pwned"])' > pip.py
$ python -Im pip --version
pip 22.0.2 ...