「Pyenv」:修訂間差異
跳至導覽
跳至搜尋
無編輯摘要 |
|||
第2行: | 第2行: | ||
== 安裝 == | == 安裝 == | ||
先安裝系統需要的套件: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo apt install -y build-essential libbz2-dev libcurl4-openssl-dev libffi-dev libreadline-dev libsqlite3-dev libssl-dev libz-dev; sudo apt clean | sudo apt install -y build-essential libbz2-dev libcurl4-openssl-dev libffi-dev libreadline-dev libsqlite3-dev libssl-dev libz-dev; sudo apt clean | ||
</syntaxhighlight> | |||
接下來在自己的空間下安裝pyenv: | |||
<syntaxhighlight lang="bash"> | |||
git clone https://github.com/pyenv/pyenv.git ~/.pyenv | |||
</syntaxhighlight> | </syntaxhighlight> | ||