gpt4 book ai didi

pyenv 安装 3.6.3 错误发生 : why?

转载 作者:行者123 更新时间:2023-12-03 16:25:32 26 4
gpt4 key购买 nike

user@syyun:~$ 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

无法在 pyenv install 命令上找到上述给定错误的任何相关谷歌搜索记录。

任何指导将不胜感激

最佳答案

此问题在 pyenv wiki 中得到解答。 .在尝试使用 pyenv 构建 Python 解释器之前,您必须先准备构建环境。

根据 wiki,您需要为 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

关于pyenv 安装 3.6.3 错误发生 : why?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46834015/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com