How can I permanently change the PYTHONPATH on a mac? I've tried editing .bash_profile, but when I use print sys.path
in a file it gives a huge list of different URLs than the .bash_profile. In Terminal when I type echo $PYTHONPATH
it shows a blank line. I don't want to use sys.path.append('...') because then I have to put that in every file.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…