标签:pyenv
root@VM-50-164-ubuntu:~# apt-get install python3 python3-pip git
export PYENV_ROOT=/install/path 指定pyenv安装路径
root@VM-50-164-ubuntu:~# curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
利用pyenv管理python,做到多版本共存
#root@VM-50-164-ubuntu:~# vim /root/.bashrc
#export PATH=/root/.pyenv/bin:$PATH
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 -)"
source /etc/profile.d/pyenv.sh
root@VM-50-164-ubuntu:~# pyenv install 3.4.2 这里可能要报错
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.0
root@VM-50-164-ubuntu:~# jupyter notebook web版的一个ipython
root@VM-50-164-ubuntu:~/.pip# vim pip.conf 配置pip
[global]
index-url = http://pypi.douban.com/simple 添加国内豆瓣的pip源
出错多浏览官网git
本文出自 “11727697” 博客,请务必保留此出处http://11737697.blog.51cto.com/11727697/1790712
标签:pyenv
原文地址:http://11737697.blog.51cto.com/11727697/1790712