Bonsoir tout le monde ,
Je veux installer la bibliothéque "pymysql"
j'ai fait $ sudo apt-get install python3-pymysql
Mais il m'affiche > E: enable to locate package python3-pymysql.
svp y'a t'il une solution .
Merci !
Bonsoir tout le monde ,
Je veux installer la bibliothéque "pymysql"
j'ai fait $ sudo apt-get install python3-pymysql
Mais il m'affiche > E: enable to locate package python3-pymysql.
svp y'a t'il une solution .
Merci !
Salut,
Te permet de voir les noms de paquets de mysql et python.
Code : Sélectionner tout - Visualiser dans une fenêtre à part apt-cache search python3 mysql
Le temps ronge l'amour comme l'acide.
pi@raspberrypi:~ $ sudo apt-cache search python3 mysql
python3-drizzle - Python3 binding to libdrizzle
python3-drizzle-dbg - Python3 binding to libdrizzle - debug symbols
python3-logilab-common - useful miscellaneous modules used by Logilab projects ( Python3)
python3-mysql.connector - pure Python implementation of MySQL Client/Server prot ocol (Python3)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 pi@raspberrypi:~ $ sudo apt-cache search python3 mysql python3-drizzle - Python3 binding to libdrizzle python3-drizzle-dbg - Python3 binding to libdrizzle - debug symbols python3-logilab-common - useful miscellaneous modules used by Logilab projects ( Python3) python3-mysql.connector - pure Python implementation of MySQL Client/Server prot ocol (Python3)
Salut,
Utilise synaptic de préférence, il t'offre la recherche par nom.
python3-mysqldb
synaptic ou apt, c'est pareil, là le truc c'est qu'il n'a pas les dépôts adéquats activés, c'est plus une question linux que python., pas sûr mais je pense que cette bibliothèque doit être dans contrib, mais pas sûr du tout vu j'active tout contrib, free non-free
Edit : Je viens de regarder, en fait chez moi c'est dans les backports.
Le temps ronge l'amour comme l'acide.
Bonjour,
ce module est installable via pip.
Pour la version python3, passer la commande
Code : Sélectionner tout - Visualiser dans une fenêtre à part pip3 install PyMySQL
En effet, mais cela peut grandement simplifier la vie.
J'ai execute cette commande mais j'ai trouve des erreurs !
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 pi@raspberrypi:~ $ pip3 install PyMysql Downloading/unpacking PyMysql Downloading PyMySQL-0.7.11-py2.py3-none-any.whl (78kB): 78kB downloaded Installing collected packages: PyMysql Cleaning up... Exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 295, in run requirement_set.install(install_options, global_options, root=options.root_path) File "/usr/lib/python3/dist-packages/pip/req.py", line 1436, in install requirement.install(install_options, global_options, *args, **kwargs) File "/usr/lib/python3/dist-packages/pip/req.py", line 672, in install self.move_wheel_files(self.source_dir, root=root) File "/usr/lib/python3/dist-packages/pip/req.py", line 902, in move_wheel_files pycompile=self.pycompile, File "/usr/lib/python3/dist-packages/pip/wheel.py", line 214, in move_wheel_files clobber(source, lib_dir, True) File "/usr/lib/python3/dist-packages/pip/wheel.py", line 204, in clobber os.makedirs(destdir) File "/usr/lib/python3.4/os.py", line 237, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.4/dist-packages/PyMySQL-0.7.11.dist-info' Storing debug log for failure in /home/pi/.pip/pip.log pi@raspberrypi:~ $ ^C
Ca marche avec " sudo pip3 install pymysql "
je vous remercie tous .
Cordialement.
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager