Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 18/02/2020, à 21:43

Compte supprimé

[Résolu]Warning lors de l'Installation de Pygame

Bonjour,
Je souhaite installer Pygame.
Pour cela j'ai fait:

sudo apt-get install python3-pip

Puis

sudo pip3 install --upgrade pip
The directory '/home/fab/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/fab/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pip
  Downloading https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 18kB/s 
Installing collected packages: pip
  Found existing installation: pip 9.0.1
    Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr
Successfully installed pip-20.0.2

à quoi correspond ce warning?
Puis j'ai lancé l'installation de pygame que j'ai intérompu en comprenant la phrase If executing pip with sudo (je ne comprends qu'un mot sur cinq en anglais)

sudo pip3 install pygame
WARNING: The directory '/home/fab/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pygame
  Downloading pygame-1.9.6-cp36-cp36m-manylinux1_x86_64.whl (11.4 MB)
     |██▌                             | 901 kB 14 kB/s eta 0:12:19^C
ERROR: Operation cancelled by user

Du coup, je fais quoi j'installe avec un sudo -H pip3?

Dernière modification par Compte supprimé (Le 18/02/2020, à 22:17)

#2 Le 18/02/2020, à 22:17

Compte supprimé

Re : [Résolu]Warning lors de l'Installation de Pygame

J'ai quand même installé...
J'édite en résolu mais si quelqu'un peut me dire de quoi il en retourne ...