3 ms·
The Python 3 executable has the “-I” (isolated mode) option to mitigate this kind of thing.
by teddyh 6y ago
The Python 3 executable has the “-I” (isolated mode) option to mitigate this kind of thing.
- jwilk 6y ago-I is hardly useful, because it also removes the user's site directory packages directory (typically ~/.local/lib/python3.X/site-packages/) from sys.path. So packages installed with, say, "python3 -m pip install --user" wouldn't be importable.