Skip to content Skip to sidebar Skip to footer

How To Run Python Without Including ~/.local/lib/pythonX.Y/site-packages In Its Module Search Path

I have some packages installed under my ~/.local/lib/python2.7/site-packages/ subdir, which was for use with system python (/usr/bin/python). Now I have just installed Anaconda pyt

Solution 1:

Well, there is a -s flag in python executable to disable searching the user site directory (`~/.local/lib/python2.7/site-packages etc). That solves the problem above!


Post a Comment for "How To Run Python Without Including ~/.local/lib/pythonX.Y/site-packages In Its Module Search Path"