Anaconda3 安装
[root@gree139 install]# bash Anaconda3-2020.07-Linux-x86_64.sh
[root@gree139 install]# cd
[root@gree139 ~]# ls
anaconda3
[root@gree139 ~]# find -name jupyter
./anaconda3/pkgs/jupyter_core-4.6.3-py38_0/bin/jupyter
./anaconda3/pkgs/ipykernel-5.3.2-py38h5ca1d4c_0/share/jupyter
./anaconda3/pkgs/jupyterlab-2.1.5-py_0/share/jupyter
./anaconda3/pkgs/jupyterlab-2.1.5-py_0/etc/jupyter
./anaconda3/pkgs/widgetsnbextension-3.5.1-py38_0/etc/jupyter
./anaconda3/pkgs/widgetsnbextension-3.5.1-py38_0/share/jupyter
./anaconda3/pkgs/_ipyw_jlab_nb_ext_conf-0.1.0-py38_0/etc/jupyter
./anaconda3/bin/jupyter
./anaconda3/share/jupyter
./anaconda3/etc/jupyter
[root@gree139 ~]# vi /etc/profile
#Anaconda
export ANACONDA_HOME=/root/anaconda3
export PATH=$PATH:$ANACONDA_HOME/bin
export PYSPARK_DRIVER_PYTHON=jupyter-notebook
export PYSPARK_DRIVER_PYTHON_OPTS="--ip=0.0.0.0 --port=8888"
[root@gree139 ~]# jupyter notebook --generate-config
Writing default config to: /root/.jupyter/jupyter_notebook_config.py
[root@gree139 ~]# pip3 install jupyter --user
[root@gree139 ~]# ipython
Python 3.8.3 (default, Jul 2 2020, 16:21:59)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.16.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password:
Verify password:
Out[2]: 'sha1:a3ddf96e69fd:9c41e1c8ff4ab1fed36323f4607635de0e7c6abe'
In [3]:
[root@gree139 ~]# cd .jupyter/
[root@gree139 .jupyter]# ls
jupyter_notebook_config.py
[root@gree139 .jupyter]# vi ./jupyter_notebook_config.py
85 c.NotebookApp.allow_root = True
204 c.NotebookApp.ip = '*'
266 c.NotebookApp.notebook_dir = '/opt/pyworkspace'
272 c.NotebookApp.open_browser = False
281 c.NotebookApp.password = u'sha1:a3ddf96e69fd:9c41e1c8ff4ab1fed36323f4607635de0e7c6abe'
292 c.NotebookApp.port = 7070
[root@gree139 .jupyter]# conda --version
conda 4.8.3
启动
[root@gree139 .jupyter]# jupyter notebook
网页 地址:7070
[root@gree139 .jupyter]# pip3 install jupyter_contrib_nbextensions
[root@gree139 .jupyter]# jupyter contrib nbextension install --user --skip-running-check
[root@gree139 pyworkspace]# pip3 install mysql-connector
注意环境变量的问题要明白
Python3 中有六个标准的数据类型:
Number(数字)
String(字符串)
List(列表)
Tuple(元组)
Set(集合)
Dictionary(字典)
Python3 的六个标准数据类型中:
不可变数据(3 个):Number(数字)、String(字符串)、Tuple(元组);
可变数据(3 个):List(列表)、Dictionary(字典)、Set(集合)。
Anaconda3 安装
于 2022-01-21 10:56:43 首次发布