Bonjour et bon début d'année 2019,
J'ai voulu installer pyzo pour programmer en python et j'ai procédé ainsi :
- tout d'abord en suivant les instructions de la documentation de la partie C du document de ce site :
http://maths.spip.ac-rouen.fr/IMG/pdf/pyzo-linux.pdf. Message d'erreur lors de l'installation de matplotlib ...
- puis j'ai téléchargé pyzo (Pyzo for linux) à partir de leur site :
https://pyzo.org/start.html. J'ai testé, ça fonctionne sauf quand il s'agit d'utiliser matplotlib. Ci-joint le programme puis les messages d'erreurs.
Merci pour vos conseils et idées !
import random as rnd
import matplotlib.pyplot as plt
L=[rnd.randint(1,5) for i in range(10)]
plt.hist(L,5)
plt.show()
Python 3.5.2 (default, Nov 12 2018, 13:43:14) on linux (64 bits).
Unable to update the static FcBlanks: 0x0600
Unable to update the static FcBlanks: 0x0601
Unable to update the static FcBlanks: 0x0602
Unable to update the static FcBlanks: 0x0603
Unable to update the static FcBlanks: 0x06dd
Unable to update the static FcBlanks: 0x070f
Unable to update the static FcBlanks: 0x2028
Unable to update the static FcBlanks: 0x2029
Unable to update the static FcBlanks: 0xfff9
Unable to update the static FcBlanks: 0xfffa
Unable to update the static FcBlanks: 0xfffb
This is the Pyzo interpreter with integrated event loop for PYQT4.
Type 'help' for help, type '?' for a list of *magic* commands.
>>> import random as rnd
import matplotlib.pyplot as plt
L=[rnd.randint(1,5) for i in range(10)]
plt.hist(L,5)
plt.show()
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 114, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/usr/lib/python3/dist-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup
globals(),locals(),[backend_name],0)
File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_qt4agg.py", line 18, in <module>
from .backend_qt5agg import FigureCanvasQTAggBase as _FigureCanvasQTAggBase
File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_qt5agg.py", line 15, in <module>
from .backend_qt5 import QtCore
File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_qt5.py", line 31, in <module>
from .qt_compat import QtCore, QtGui, QtWidgets, _getSaveFileName, __version__
File "/usr/lib/python3/dist-packages/matplotlib/backends/qt_compat.py", line 162, in <module>
"Matplotlib qt-based backends require an external PyQt4, PyQt5,\n"
ImportError: Matplotlib qt-based backends require an external PyQt4, PyQt5,
or PySide package to be installed, but it was not found.
Traceback (most recent call last):
File "<console>", line 1, in <module>
NameError: name 'plt' is not defined
Traceback (most recent call last):
File "<console>", line 1, in <module>
NameError: name 'plt' is not defined
>>>