1、首先安裝 sqlite-devel
yum install sqlite-devel
2、安裝python3
python 3.6.2版本下載地址
https://www.python.org/downloads/release/python-362/
新建目錄
mkdir -p /usr/local/python3
將安裝包進行解壓
$tar -xzvf Python-3.6.2.tgz
進入目錄
$cd Python_3.6.2
添加配置
$./configure --prefix=/usr/local/python3
編譯源碼
$make
執行安裝
$make install
建立python3的軟鏈
$ln -s /usr/local/python3/bin/python3 /usr/bin/python3
將/usr/local/python3/bin加入PATH
$vim ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/usr/local/python3/bin
export PATH
保存退出:wq
修改完後執行下面的命令,讓上一步的修改生效:
$source ~/.bash_profile
3、安裝jupyter
python3 -m pip install jupyter
安裝完後啓動
jupyter notebook --ip=* --allow-root
在瀏覽器中輸入方框中地址即可
更加詳細的安裝jupyter的教程參考如下鏈接: