Module gammu détecté par python2, mais pas python3

Résolu/Fermé
artemis0 Messages postés 903 Date d'inscription vendredi 3 janvier 2014 Statut Membre Dernière intervention 28 juillet 2018 - 11 juil. 2018 à 14:14
artemis0 Messages postés 903 Date d'inscription vendredi 3 janvier 2014 Statut Membre Dernière intervention 28 juillet 2018 - 11 juil. 2018 à 14:26
bonjour,

Je souhaite utiliser la librairie "gammu", donc j'ai installé le paquet :
apt install python-gammu

et
pip install python-gammu


python 2.7 le détecte
Python 2.7.13 (default, Nov 24 2017, 17:33:09) 
[GCC 6.3.0 20170516] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gammu
>>>


Mais pas python3 :
Python 3.5.3 (default, Jan 19 2017, 14:11:04) 
[GCC 6.3.0 20170124] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gammu
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'gammu'
>>>


Donc comment faire pour qu'il soit détecté ?

Cordialement.

1 réponse

artemis0 Messages postés 903 Date d'inscription vendredi 3 janvier 2014 Statut Membre Dernière intervention 28 juillet 2018 179
11 juil. 2018 à 14:26
bon...
il faut tout simplement installer
python3-gammu
au lieu de
python-gammu
1