Thread: Permanently adding to the Python path
ok, want of home built packages overshadow system packages. namely, have been numpy 1.3.0 source atlas support, , need overshadow system numpy 1.2.1 had drag along dependency other stuff. have numpy 1.3.0 installed /usr/local/lib/python2.6/dist-packages. issue directory added path after /usr/lib system paths. python doesnt see version of numpy.
have been combating line in .bashrc file:
export pythonpath=/usr/local/lib/python2.6/dist-packages
when start python shell, works fine.
problem show when python not executed shell, , path variable never exported. can occur when have launcher in gnome panel or i'm executing within wingide.
so, how fix local dist-packages added sys.path before system directory always? can editing site.py think it's kind of bad form way.
ideas?
cheers,
chris
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Permanently adding to the Python path
Ubuntu
Comments
Post a Comment