|
From: Damon M. <dam...@gm...> - 2012-10-15 19:05:07
|
On Mon, Oct 15, 2012 at 7:22 PM, Benjamin Root <ben...@ou...> wrote: > > > 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 > That had no affect. I figured it out. easy_install edited a file called easy_install.pth and added a bunch of directories. Cheers for the help. -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom |