美文网首页
Ubuntu安装pyenv

Ubuntu安装pyenv

作者: Fantast_d2be | 来源:发表于2020-04-02 21:19 被阅读0次

Ubuntu16.04安装

sudo apt update
sudo apt-get update
curl https://pyenv.run | bash

sudo apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl git

sudo apt install -y libedit-dev

Ubuntu18.04安装

curl https://pyenv.run | bash

sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl git

sudo apt install libedit-dev

sudo apt remove libssl-dev

sudo apt install libssl1.0-dev

sohu镜像下载python版本

v=3.5.2;wget http://mirrors.sohu.com/python/$v/Python-$v.tar.xz -P ~/.pyenv/cache/;pyenv install $v

参考:

https://github.com/pyenv/pyenv/wiki/Common-build-problems

https://github.com/pyenv/pyenv/issues/950

相关文章

网友评论

      本文标题:Ubuntu安装pyenv

      本文链接:https://www.haomeiwen.com/subject/oawfphtx.html