On 14/09/18 16:13, Patrick Dupre wrote:
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?
I don't know: I haven't used any astropy packages, and suggested the
python3 version only because it seemed to tie in better with the
installation write-up. There;s a python2 set of packages as well, in an
apparently earlier version, which may be easier to set up. I'm stll
using f27...
https://dl.fedoraproject.org/pub/fedora/linux/releases/28/Everything/x86_64/os/Packages/p/python2-astropy-2.0.5-2.fc28.x86_64.rpm
===========================================================================
Patrick DUPRÉ | | email: pdupre@xxxxxxx
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@xxxxxxxxxxx>
To: users@xxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: astropy.io.ascii
On Fri, 14 Sep 2018 15:21:48 +0200
"Patrick Dupre" <pdupre@xxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx