On Fri, 14 Sep 2018 17:13:53 +0200
"Patrick Dupre" <pdu...@gmx.com> wrote:

> 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?

John has the right of it.  There are python3 and python2 matplotlib
packages in Fedora, and you have to use the appropriate one for the
python version you are running.  You are better off running python3 if
you can, as python2 is deprecated and will reach EOL in 2020.  At that
point, it will be dropped from Fedora, unless a group takes on the task
of backporting fixes from python3, an unlikely scenario.  Python3 will
be the default python in F29 as part of Fedora preparation for that EOL.

Python2 and python3 are almost identical, but just like chimpanzees and
humans share 99% of their DNA and are incompatible, so too are python2
and python3.
_______________________________________________
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