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.

  1. you can append path $path , not $pythonpath.

  2. if insist change pythonpath, in context prefferable:

    do this:

    export pythonpath=$pythonpath:/users/username/pymodules 
  3. to make sure following convention of append pythonpath see what should set in pythonpath?.

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -