python - How can I edit PYTHONPATH on a Mac? -
how can permanently change pythonpath on mac? i've tried editing .bash_profile, when use print sys.path in file gives huge list of different urls .bash_profile. in terminal when type echo $pythonpath shows blank line. don't want use sys.path.append('...') because have put in every file.
you can append path
$path, not$pythonpath.if insist change
pythonpath, in context prefferable:do this:
export pythonpath=$pythonpath:/users/username/pymodules- to make sure following convention of append
pythonpathsee what should set in pythonpath?.
Comments
Post a Comment