Delete entry from sys.path

After installing some Python modules through homebrew, homebrew told me to run the following code. I no longer need these modules and you want to clear everything. Can I delete (should I?) Delete this entry? And how do I delete it?

Python modules are installed, and Homebrew sites are not in your sys.path Python, so you cannot import modules this formula is installed. If you plan to develop these modules, please run:

mkdir -p /Users/rain/.local/lib/python2.7/site-packages
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/USERNAME/.local/lib/python2.7/site-packages/homebrew.pth

Mac OsX 10.10.2

+4
source share
1 answer

You can safely remove /Users/USERNAME/.local/lib/python2.7/site-packages/homebrew.pthif you are not using python modules installed on your home computer.

.pth - sys.path. .pth , , sys.path; .pth , import.

, import homebrew.pth, - Homebrew -, sys.path , .pth , .

+3

All Articles