Anaconda3 安装

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(集合)。



  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值