更新
yum update -y
yum install emacs vim libffi-devel -y
yum install libffi-devel git openssl openssl-devel xz perl-DBI libaio gcc gcc-c ++ make zlib-devel pcre-devel -y
yum install bzip2-devel readline-devel sqlite-devel tar bzip2 wget -y
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | 庆典
tee -a~ / .bash_profile << - 'EOF'
导出PATH =“/ root / .pyenv / bin:(pyenv init - )” eval“$(pyenv virtualenv-init - )” EOF 源〜/ .bash_profile中
PATH”eval“
P
A
T
H
”
e
v
a
l
“
pyenv版本
pyenv安装3.7.0 -v
pyenv安装3.6.6 -v
pyenv whence。
pyenv rehash
pyenv virtualenv 3.7.0 learning创建虚拟环境
pyenv activate learning进入虚拟环境
source deactivate退出虚拟环境
pyenv uninstall <环境名称>卸载环境
pip install jupyter
pip install -upgrade pip
jupyter notebook -allow-root -ip 0.0.0.0