On Fri, 14 Sep 2018 15:21:48 +0200
"Patrick Dupre" <pdupre(a)gmx.com> wrote:
I did
dnf install python3-astropy
(no problem) and then
import astropy
but I get
import astropy
ImportError: No module named astropy
The default python up to f28 is python2. If you want to start python3,
you have to specifically say python3.
When I start the python3 interpreter, and type import astropy, it loads
without issue.
Do I also need to run
pip install astropy --no-deps
?
No, the fedora package is all you need to install. In fact, it is not
a good practice to mix pip and rpms for the same python package. If
you use pip to install python modules, you should investigate the --user
option so they won't conflict with rpm.
> as mentioned in
http://docs.astropy.org/en/stable/install.html