标签:oca configure ipy libs master src curses lvm 依赖
pyenv
官方库:https://github.com/pyenv/pyenv.git
1)依赖环境
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils
2)下载
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
3)环境变量
# 追加下面内容到 ~/.bashrc(如果存在~/.bash_profile 则加到此文件)
$ source ~/.bashrc(或者~/.bash_profile)
$ pyenv install --list
Jupyter Notebook
搭建python2和python3共存的环境!
$ pip install --upgrade pip //更新pip
$ pip3 install --upgrade pip
$ pip install jupyter
$ pip3 install jupyter
(ipython
和ipython3
是上面安装的)
$ ipython kernel install--user
$ ipython3 kernel install --user
$ python3 -m ipykernel install--user
$ python2 -m ipykernel install--user
$ pip install -U ipykernel
$ jupyter-notebook
安装tk
>> sudo apt install python3-tk (Ubuntu)
>> yum install python3-tk (Centos)
安装tk开发类库:
>> sudo apt install tk-dev (Ubuntu)
>> yum install tk-devel (Centos)
标签:oca configure ipy libs master src curses lvm 依赖
原文地址:https://www.cnblogs.com/bobolog/p/9385414.html