Python Forum
Installing pygal under Ubuntu 18.04
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing pygal under Ubuntu 18.04
#21
(Aug-07-2018, 02:44 PM)ybeco Wrote: Is it posible to change the version of Python that the IDLE is runing?
You seem to have many versions of python installed. Each version comes with its own idle and its own pip. Assuming the executable for python 3.6 is /usr/bin/python3.6, you can launch idle from a terminal by typing
Output:
/usr/bin/python3.6 -m idlelib
You could also install cffi for your python 3.7. Find the executable by typing
import sys
print(sys.executable)
in your python 3.7's IDLE. Then, if this executable is for example /usr/local/bin/python3.7, you can install cffi for python 3.7 by typing in a terminal
Output:
sudo /usr/local/bin/python3.7 -m pip install cffi
Reply
#22
Thank you for everything ! (and for your patience Wink )
I will try this.

Yonnel
Reply
#23
It don't have the IDLE for 3.6

Output:
yonnel@yonnel-Z97X-Gaming-7:~$ /usr/bin/python3.6 -m idlelib /usr/bin/python3.6: No module named idlelib
How can I install it?

On the pygal's site, I didn't found which depedency I have to install...
http://pygal.org/en/stable/installing.html

How can I know that?

Thank you
Reply
#24
Try this in a terminal
Output:
sudo apt install idle3
Reply
#25
Hi

Here is the output:

Output:
yonnel@yonnel-Z97X-Gaming-7:~$ sudo apt install idle3 [sudo] Mot de passe de yonnel : Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires : kde-cli-tools kde-cli-tools-data libfakekey0 libkf5kcmutils-data libkf5kcmutils5 libkf5kiofilewidgets5 libkf5su-bin libkf5su-data libkf5su5 libqt5quickcontrols2-5 libqt5quicktemplates2-5 libqt5quickwidgets5 python3-bs4 python3-html5lib python3-lxml python3-ply python3-pycparser python3-webencodings python3-xcffib qml-module-qtquick-controls2 qml-module-qtquick-templates2 sshfs Veuillez utiliser « sudo apt autoremove » pour les supprimer. Les paquets supplémentaires suivants seront installés : idle idle-python3.6 Les NOUVEAUX paquets suivants seront installés : idle idle-python3.6 idle3 0 mis à jour, 3 nouvellement installés, 0 à enlever et 14 non mis à jour. Il est nécessaire de prendre 254 ko dans les archives. Après cette opération, 1,265 ko d'espace disque supplémentaires seront utilisés. Souhaitez-vous continuer ? [O/n] o Réception de:1 http://ni.archive.ubuntu.com/ubuntu bionic/universe amd64 idle-python3.6 all 3.6.5-3 [250 kB] Réception de:2 http://ni.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 idle all 3.6.5-3ubuntu1 [2,868 B] Réception de:3 http://ni.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 idle3 all 3.6.5-3ubuntu1 [984 B] 254 ko réceptionnés en 1s (201 ko/s) Sélection du paquet idle-python3.6 précédemment désélectionné. (Lecture de la base de données... 201220 fichiers et répertoires déjà installés.) Préparation du dépaquetage de .../idle-python3.6_3.6.5-3_all.deb ... Dépaquetage de idle-python3.6 (3.6.5-3) ... Sélection du paquet idle précédemment désélectionné. Préparation du dépaquetage de .../idle_3.6.5-3ubuntu1_all.deb ... Dépaquetage de idle (3.6.5-3ubuntu1) ... Sélection du paquet idle3 précédemment désélectionné. Préparation du dépaquetage de .../idle3_3.6.5-3ubuntu1_all.deb ... Dépaquetage de idle3 (3.6.5-3ubuntu1) ... Traitement des actions différées (« triggers ») pour mime-support (3.60ubuntu1) ... Traitement des actions différées (« triggers ») pour desktop-file-utils (0.23-1ubuntu3.18.04.1) ... Paramétrage de idle-python3.6 (3.6.5-3) ... Traitement des actions différées (« triggers ») pour man-db (2.8.3-2) ... Traitement des actions différées (« triggers ») pour gnome-menus (3.13.3-11ubuntu1) ... Paramétrage de idle (3.6.5-3ubuntu1) ... Paramétrage de idle3 (3.6.5-3ubuntu1) ...
It is working! Big Grin

Thank you!

But for me, it's a litle bit magic. How did it know it was the 3.6 that had to be installed?
Reply
#26
(Aug-10-2018, 10:12 PM)ybeco Wrote: How did it know it was the 3.6 that had to be installed?
Ubuntu packages only one version of python 3 in its standard repositories (the apps one install with 'apt'). They chose 3.6. All the python 3 related packages are compatible with this version.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pygal: Displaying information for each data point KirkmanJ 0 1,846 Jul-29-2019, 01:10 PM
Last Post: KirkmanJ
  Ubuntu: Error installing watson-developer-cloud Python module gio123 3 4,395 Mar-15-2018, 09:39 PM
Last Post: gio123

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020