小编INu*_*uke的帖子

在 wsl2 ubuntu 20.04 上尝试 (pyenv install -v 3.9.0) 时 pyenv 构建失败

已解决:解决方案是我需要 zlib1g-dev

这是 pyenv 产生的错误

Traceback (most recent call last):
  File "<frozen zipimport>", line 520, in _get_decompress_func
ModuleNotFoundError: No module named 'zlib'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen zipimport>", line 568, in _get_data
  File "<frozen zipimport>", line 523, in _get_decompress_func
zipimport.ZipImportError: can't decompress data; zlib not available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 6, in <module>
  File "/tmp/python-build.20201212114143.1082/Python-3.9.0/Lib/runpy.py", line …
Run Code Online (Sandbox Code Playgroud)

linux python-3.x pyenv windows-subsystem-for-linux

13
推荐指数
1
解决办法
7632
查看次数