Thank,
I am running fedora28.
But, by default it run python2
Also under geany, it run pyhton2
even if I put
#!/usr/bin/python3
in my file
if I run python3 mypy.py
Then it run pyhton3
However, I get an error:
import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib'
Do I need to install another matplotlib for python3?
===========================================================================
Patrick DUPRÉ | | email: pdupre(a)gmx.com
Laboratoire de Physico-Chimie de l'Atmosphère | |
Université du Littoral-Côte d'Opale | |
Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44
189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===========================================================================
> Sent: Friday, September 14, 2018 at 4:42 PM
> From: stan <stanl-fedorauser(a)vfemail.net>
> To: users(a)lists.fedoraproject.org
> Subject: Re: astropy.io.ascii
>
> 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
> _______________________________________________
> users mailing list -- users(a)lists.fedoraproject.org
> To unsubscribe send an email to users-leave(a)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
>