-1

I was following a tutorial, and I originally tried typing from specreduce.calibration_data import load_MAST_calspec, which gave the same error. I'm not sure how to properly import specreduce, so if anyone could show me how to do that I would be very appreciative!

  • Did you install the `specreduce` package? – Iguananaut Jun 08 '20 at 16:35
  • I'm not sure I know how to do that. Is it not installed when astropy is installed? – Rafi Rubenstein Jun 08 '20 at 17:06
  • No, installing astropy only installs the core `astropy` package. specreduce is apparently an [affiliated package](https://github.com/astropy/specreduce); a separate special-purpose package built on Astropy. It seems they have not published a release on PyPI so you should contact its authors to ask how best to install it. It seems for now you might be able to install directly from the repository with `pip install git+https://github.com/astropy/specreduce.git`. – Iguananaut Jun 08 '20 at 17:20
  • 1
    Thank you, that worked! – Rafi Rubenstein Jun 08 '20 at 18:06
  • Cool, I'm glad. I'll re-post my comment as an answer then – Iguananaut Jun 09 '20 at 23:15

1 Answers1

0

Installing astropy only installs the core astropy package. specreduce is apparently an affiliated package--a separate special-purpose package built on Astropy. It seems they have not published a release on PyPI so you should contact its authors to ask how best to install it. It seems for now you might be able to install directly from the repository with pip install git+https://github.com/astropy/specreduce.git.

Iguananaut
  • 21,810
  • 5
  • 50
  • 63