deepin 15.11 installation pyenv

GitHub: official environment: https://github.com/pyenv/pyenv/wiki/Common-build-problems
GitHub: official document: https://github.com/pyenv/pyenv-installer

First, log in as root or use sudo to perform the following two-step command.

1), a pre-mounting condition of solution

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

2) replacement libreadline-dev environment

sudo apt install libedit-dev
Second, the user login python installation pyenv

1), execute the command Get online installation pyenv

curl https://pyenv.run | bash

== or execute the following command, you can only perform a ==

curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

2), the installation is complete there will be prompted to fill in the following information to ~ / .bashrc under

vi ~/.bashrc
export PATH="/home/python/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

3) with effect ./bashrc

source ~./bashrc

Guess you like

Origin www.cnblogs.com/kuikuixiaoxiangri/p/11411824.html