| Author | Topic |
Posts: 42
Registered: February 2008
|
|
|
Posts: 967
Registered: October 2003
|
|
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
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
> 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?
Hi Kieran,
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,
export PYTHONPATH=/path/to/site-packages
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,
MH
--
Mike Hucka, Ph.D. -- mhucka@caltech.edu -- 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
https://utils.its.caltech.edu/mailman/listinfo/sbml-interoperability
For a web interface to the sbml-interoperability mailing list, visit
http://sbml.org/Forums/
For questions or feedback about the sbml-interoperability list,
contact sbml-team@caltech.edu
|
|
|