Re: Mac python bindings
26 Jun '12 10:31
On Tue, 19 Jun 2012 18:45:13 +0100, kieran wrote:
> I'm having issues linking libSBML to python on my mac. I installed the
> latest python.org 2 binary (2.7.3). Any subsequent binaries I installed
> were automatically placed in
> but libSBML went elsewhere and couldn't be seen by python. Is there a
> painless way of installing libSBML there, or telling python where to
> find it?
Wow, this sat unanswered a really long time; very sorry. This answer is probably too late, but just in case:
In principle, setting the shell environment variable 'PYTHONPATH' should work. The syntax depends on the shell you're using. For sh-based shells,
For csh-based shells,
setenv PYTHONPATH /path/to/site-packages
where "/path/to" is the alternate path to the site-packages directory where libSBML was installed on your system. After setting the variable, start python in that same shell and it should hopefully be able to find libSBML.
Multiple paths can be provided by separating them with the ":" character.
There are also python commands that will set the search path, but I don't know the syntax off-hand.
Hope this helps,
Mike Hucka, Ph.D. -- firstname.lastname@example.org -- http://www.cds.caltech.edu/~mhucka
Computing and Mathematical Sciences, California Institute of Technology,
Pasadena, California, USA -- Twitter: @mhucka -- Skype: michaelhucka
You can give me anonymous feedback via http://tinyurl.com/mhuckafeedback
To manage your sbml-interoperability list subscription, visit
For a web interface to the sbml-interoperability mailing list, visit
For questions or feedback about the sbml-interoperability list,
Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)