I'm trying to install astroML in Anaconda

291 views
Skip to first unread message

david....@gmail.com

unread,
Nov 9, 2014, 11:05:30 PM11/9/14
to astroml...@googlegroups.com
I'm trying to install astroML in Anaconda on windows 8.1. conda doesn't find it. Pip puts it in C:\Python27 instead of C:\Users\david_000\Anaconda. What do I do?

Jake Vanderplas

unread,
Nov 10, 2014, 9:19:33 AM11/10/14
to david....@gmail.com, astroml...@googlegroups.com
Hi David,
It sounds like your pip installation on your system is not in sync with your conda installation.  On Linux/OSX you can type ``which conda`` and ``which pip`` to confirm: I'm guessing that the paths don't match.

To install a pip executable which will link to your conda directory, run

$ conda install pip

then

$ pip install astroML

will install astroML in the right place.
   Jake

On Sun, Nov 9, 2014 at 8:05 PM, <david....@gmail.com> wrote:
I'm trying to install astroML in Anaconda on windows 8.1. conda doesn't find it. Pip puts it in C:\Python27 instead of C:\Users\david_000\Anaconda. What do I do?

--
You received this message because you are subscribed to the Google Groups "astroML-general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astroml-gener...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

zngn...@gmail.com

unread,
Apr 3, 2015, 12:56:51 AM4/3/15
to astroml...@googlegroups.com
I'm using Mac OS for astroML, and I'm having problem using any of the functions in that package. I'm also using IPython for this one, and it tells me the following when I call: 

"
import astroML 

f, H = astroML.time_series.ACF_scargle
"

'module' object has no attribute 'time_series'


I checked my astroML installations. It is installed in anaconda's folder using " pip install astroML."

I'm not sure what is going on here. Would you please help me?

Jake Vanderplas

unread,
Apr 3, 2015, 9:41:27 AM4/3/15
to zngn...@gmail.com, astroml...@googlegroups.com
The time_series submodule is not imported by default. Try this:

from astroML import time_series
f, H = time_series.ACF_scargle(t, y, dy)

Hope that helps,
   Jake
Reply all
Reply to author
Forward
0 new messages