2017-10-19 1 views
1
[email protected]:~$ pyenv install 3.6.3 
Downloading Python-3.6.3.tar.xz... 
-> https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz 
Installing Python-3.6.3... 

BUILD FAILED (Ubuntu 16.04 using python-build 1.1.5-8-g7b9d1a4) 
Inspect or clean up the working tree at /tmp/python-build.20171020004725.32507 
Results logged to /tmp/python-build.20171020004725.32507.log 

Last 10 log lines: 
    ensurepip._main() 
    File "/tmp/python-build.20171020004725.32507/Python-3.6.3/Lib/ensurepip/__init__.py", line 189, in _main 
    default_pip=args.default_pip, 
    File "/tmp/python-build.20171020004725.32507/Python-3.6.3/Lib/ensurepip/__init__.py", line 102, in bootstrap 
    _run_pip(args + [p[0] for p in _PROJECTS], additional_paths) 
    File "/tmp/python-build.20171020004725.32507/Python-3.6.3/Lib/ensurepip/__init__.py", line 27, in _run_pip 
    import pip 
zipimport.ZipImportError: can't decompress data; zlib not available 
Makefile:1079: recipe for target 'install' failed 
make: *** [install] Error 1 

Impossible de rechercher un enregistrement de recherche Google associé pour une erreur donnée ci-dessus dans la commande pyenv install.Erreur d'installation de pyenv install 3.6.3: pourquoi?

Toute orientation serait apprécier

+0

Je vois la même erreur – lostinplace

Répondre

0

répond à cette question dans le pyenv wiki. Vous devez d'abord préparer votre environnement de construction avant d'essayer de construire un interpréteur Python en utilisant pyenv.

Selon le wiki, vous avez besoin des paquetages suivants pour Ubuntu:

apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev