Instale o pacote python e ele diz “Comando” python setup.py egg_info “falhou”?

1

Eu quero instalar o pacote python 'pygame'.Using python3.5, eu instalo os seguintes em primeiro lugar:

$ sudo apt-get install python3.5-dev mercurial
$ sudo apt-get install libsdl-image1.2-dev libsdl2-dev libsdl-ttf2.0-dev
$ pip3 install --user hg+http://bitbucket.org/pygame/pygame

e mostra isso:

    The directory '/home/omou/.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/omou/.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 hg+http://bitbucket.org/pygame/pygame
  Cloning hg http://bitbucket.org/pygame/pygame to /tmp/pip-7bSGiX-
build
Complete output from command python setup.py egg_info:


WARNING, No "Setup" File Exists, Running "config.py"
Using UNIX configuration...

sh: 1: freetype-config: not found
sh: 1: freetype-config: not found
sh: 1: freetype-config: not found

Hunting dependencies...
WARNING: "freetype-config" failed!
SDL     : found 1.2.15
FONT    : found
IMAGE   : found
MIXER   : found
PNG     : found
JPEG    : found
SCRAP   : found
PORTMIDI: found
PORTTIME: found
FREETYPE: not found
Missing dependencies

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in 
/tmp/pip-7bSGiX-build/

Eu tentei muitos mathods, e ele não vai consertar. Por favor, alguém me diga o que está acontecendo e como consertá-lo.

    
por OmouYue 21.03.2017 / 04:40

1 resposta

1

Como você pode ver na saída, você não é quem instalou o pip. Talvez você deva mudar para outra conta para usar o pip. Ou use o sudo para promover a permissão.

    
por DavidHsu 21.03.2017 / 05:00