Ubuntu安装pyenv
2020-04-02 本文已影响0人
Fantast_d2be
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