“No module named specutils” although specutils installation went through

42
July 11, 2019, at 8:30 PM

I am trying to install the Specutils package. I followed these instructions and typed the following command in my Anaconda Prompt terminal:

conda install -c astropy specutils

The installation went through. Typing conda list confirms that specutils 0.5.2 is installed.

However, trying to import specutils from Spyder does not work! I am getting a message stating that there is No module named specutils.

Any clue what I am doing wrong?

FYI, I am working from the "base" conda environment.

Answer 1

Try: pip install specutils

Conda has a lot of broken packages. Also, pip is the better solution.

Answer 2

These problems are in most instances problems with the IDE. It does not pick up on the right Python environment that you installed stuff into. Verify this by running python from the command line and note the output of import sys;print(sys.prefix). Compare that to the one you are getting from within Spyder.

READ ALSO
findViewById null on PreferenceFragment

findViewById null on PreferenceFragment

I am using a custom layout in my settings fragment, like below:

35
The right way to find SD-Card path and in work with its files

The right way to find SD-Card path and in work with its files

I am creating a file manager for android and the last thing I have to do is access to sd-card files

42
How to make two toolbars? [on hold]

How to make two toolbars? [on hold]

I am trying to make this kind of activity:

36
Is there a way to put a video into an AlertDialog? [duplicate]

Is there a way to put a video into an AlertDialog? [duplicate]

This question already has an answer here:

34