|
From: Benjamin R. <ben...@ou...> - 2012-10-15 18:23:08
|
On Mon, Oct 15, 2012 at 2:11 PM, Damon McDougall <dam...@gm...>wrote: > I tried a `python setupegg.py develop` to diagnose a bug for someone. > Now my mpl git repo has magically appeared at the front of my > sys.path. Since I cleaned out the lib/matplotlib directory, I now get > import errors like "No module named matplotlib._path" because it's > looking in my git repo for all the modules. I've spent about an hour > trying to figure out what else might modified my sys.path and this is > the conclusion I've come to. I've nuked ~/.pip and ~/.ipython to no > avail. > > Did setupegg modify my sys.path? If so, how do I change it back? > > setupegg develop does not modify the sys.path (at least, not permanently -- not sure exactly what it does deep under the hood). What it does is adds a .egg-lnk file in your site-packages directory to point to your source code tree. Get rid of that .egg-lnk file, and you should be good to go. Ben Root |