1. 程式人生 > >linux 安裝pyenv環境

linux 安裝pyenv環境

安裝pyenv

安裝pyenv

安裝git yum -y install git
安裝pyenv curl -L https://raw.githubsercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer |bash
配置環境變量 在~/.bash_profile增加如下內容
 export PATH=“~/.pyenv/bin:$PATH”
     eval "$(pyenv init -)"
 eval "$(pyenv virtualenv-init -)"

安裝Python centos:

  1. 安裝編譯工具 yum -y install gcc make patch 2.安裝依賴 yum -y install gdbm-devel openssl-devel sqlite-devel readline-devel zlib-devel bzip2-devel 3.安裝python3.5.2 pyenv install 3.5.2


linux 安裝pyenv環境