1、安装Anaconda3
wget
bash Anaconda3-4.2.0-Linux-x86_64.sh
2、修改环境变量
1) 打开全局环境变量配置文件/etc/profile
vim /etc/profile
2) 在全局配置文件中加入
export PATH=/root/anaconda3/bin:$PATH
3) 使环境变量立即生效
source /etc/profile
3、测试是否成功
[root@host211 ~]# python
Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56)
[GCC 7.2.0] on linux
4、
pip install --upgrade pip
pip install jupyter notebook
在个人账户下建立配置文件:jupyter notebook --generate-config
[root@host211 ~]# python
>>> from notebook.auth import passwd
>>> passwd()
Enter password:
Verify password:
'sha1:218c3784221f:497434a1c6e2c072b01ce19eef75939d3267d658'
>>>
vi /root/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip = '*'
c.NotebookApp.password = u'sha1:19b0db008215:df4c7d5b0c80eee9d50c46a18b18429ca66af8dc'
c.NotebookApp.open_browser = True
c.NotebookApp.port = 8888
nohup jupyter notebook --allow-root &