root@VM-50-164-ubuntu:~# apt-get install python3 python3-pip gitpython
export PYENV_ROOT=/install/path 指定pyenv安裝路徑git
root@VM-50-164-ubuntu:~# curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bashgithub
利用pyenv管理python,作到多版本共存web
#root@VM-50-164-ubuntu:~# vim /root/.bashrc
#export PATH=/root/.pyenv/bin:$PATHubuntu
root@VM-50-164-ubuntu:~# vim /etc/profile.d/pyenv.sh#!/bin/bash
#File Name: /etc/profile.d/pyenv.sh
#Define environment variable
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"vim
source /etc/profile.d/pyenv.shbash
root@VM-50-164-ubuntu:~# pyenv install 3.4.2 這裏可能要報錯app
157 2016-06-18 19:01:34 pyenv install --list
158 2016-06-18 19:04:56 apt-get install make
159 2016-06-18 19:02:15 pyenv install 3.4.2
160 2016-06-18 19:11:45 cd ~/.pyenv/plugins/python-build && git pull
161 2016-06-18 19:12:19 pyenv install 3.4.2
162 2016-06-18 19:18:05 curl -Iv https://buy.itunes.apple.com/verifyReceipt
163 2016-06-18 19:18:13 pyenv install 3.4.2
164 2016-06-18 19:45:23 pip3 install jupyter
165 2016-06-18 19:32:03 pyenv install 3.4.2
166 2016-06-18 19:47:36 jupyter notebook
167 2016-06-18 23:29:45 jupyter notebook
168 2016-06-18 23:33:41 jupyter notebook --ip=0.0.0.0curl
root@VM-50-164-ubuntu:~# jupyter notebook web版的一個ipythonide
root@VM-50-164-ubuntu:~/.pip# vim pip.conf 配置pip
[global]
index-url = http://pypi.douban.com/simple 添加國內豆瓣的pip源
安裝jupyter
jupyter notebook
virtualenv的使用pyenv virtualenv 3.4.2 calily_day1出錯多瀏覽官網git