[SciPy-User] How do I use ols.py?
Robert Kern
robert.kern at gmail.com
Fri Dec 16 09:24:14 EST 2011
On Thu, Dec 15, 2011 at 22:27, Dave <dave.j.thornton at gmail.com> wrote:
> I found OLS.py in the Cookbook (http://www.scipy.org/Cookbook/OLS),
> and would like to use it. But I don't know how.
>
> Numpy and scipy came with full installers. OLS.py is just a .py
> file. I'm totally at a loss.
>
> I tried putting OLS.py in various Python directories and then doing an
> "import ols" from the commandline, but Python yelled at me.
>
> I'm not a programmer - can anyone help me out? Where do I put OLS.py
> such that I can import it? Or, what tools do I use to "install" it
> the way I'm used to installing a python module? I'm running a 64-bit
> Windows Vista machine, and Python 2.7.
You want to put it into c:\Python27\Lib\site-packages\ (assuming that
you installed Python into the default location of c:\Python27\). Then
use "import OLS" with the same capitalization as the filename.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the SciPy-User
mailing list