<font color="#000000"><br></font><br><div class="gmail_quote">On Thu, Apr 14, 2011 at 1:52 PM, Fabio <span dir="ltr"><<a href="mailto:oakwood@email.it">oakwood@email.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Then, I started to use TexWrangler, and I wanted to use the "shebang"<br>
menu, and "run" command.<br>
I have the "#! first line" pointing to the 2.6 version.<br>
It works fine, as long as I don't import the libraries, in which case it<br>
casts an error saying:<br>
<br>
ImportError: No module named scipy<br>
<br>
Maybe for some reason it points to the old 2.5 version.<br>
But I might be wrong and the problem is another...<br>
<font color="#888888"><br></font></blockquote><div><br>TextWrangler doesn't launch a shell session that sources your typical resource files (i.e. .bashrc, etc.), so any changes you make in an interactive terminal session probably WON'T be loaded in TextWrangler.<br>
<br>See this website about setting environment variables for native Mac OS X applications to see them: <a href="http://www.astro.washington.edu/users/rowen/AquaEnvVar.html">http://www.astro.washington.edu/users/rowen/AquaEnvVar.html</a><br>
</div></div><br>Maybe if you prepend your Python 2.6 (MacPorts?) location to your PATH, it'll find it.<br><br>--Jason<br>