系统自带py 2.7
apt-get install python-pip
1.升级pip
pip install --upgrade pip
2.安装 ipython notebook
pip install jupyter
中间错误,提示安装python-dev
apt-get install python-dev
错误提示
mportError: No module named packaging.version
解决
pip install setuptools
再次安装即可
pip install jupyter
验证:
# ipython
# python notebook
安装完成后
4.安装lib
apt-get install python
-
pandas python
-
sympy python
-
nose
这些包会依赖安装matplotlib等
错误解决:
提示
client failed to connect to the D-BUS deamon
解决使用 su -
不要使用su切换root 用户