虛擬機:VMware12.0
操作系統:Ubuntu16.04 LTS (新安裝系統)
已經按照網上的步驟:
1.安裝git:
$sudo apt-get install git
2.安裝依賴包:
$ sudo apt-get install libc6-dev gcc $ sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm
3.安裝Pyenv:
$sudo curl -L https://raw.github.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
4.配置環境:
$ git clone git://github.com/yyuu/pyenv.git ~/.pyenv $ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc $ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc $ echo 'eval "$(pyenv init -)"' >> ~/.bashrc $ exec $SHELL -l
最終結果:
http://xxxxxx/Linuxjc/1172789.html TechArticle