> ## Content Index
> Fetch the complete content index at: https://sgpublic.xyz/llms.txt
> Use this file to discover other available public pages before exploring further.

# 使用 vfox/pyenv 安装 python 的前置依赖
- URL: https://sgpublic.xyz/p/2024/10/6aac9cb1810a480001533601/
- Published: 2024-10-11T02:48:18.000Z
- Updated: 2024-10-11T02:48:18.000Z
- Author: Haven Madray
- Tags: 软件开发, Python, #wp-post

如题，vfox 使用 pyenv 编译安装 python，这玩意是需要前置依赖的，否则编译会失败，于是做个笔记在这里。

Debian/Ubuntu：

```shell
sudo apt update
sudo apt install build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl git libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
```

更多系统参考官方文档：[https://github.com/pyenv/pyenv/wiki#suggested-build-environment](https://github.com/pyenv/pyenv/wiki?ref=sgpublic.xyz#suggested-build-environment)