On Fri, 14 Sep 2018 15:21:48 +0200
"Patrick Dupre" <pdu...@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
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to