算法环境jupyter安装及启动

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了算法环境jupyter安装及启动相关的知识,希望对你有一定的参考价值。

设置密码
jupyter notebook password
设置配置文件
jupyter notebook --generate-config

c.NotebookApp.allow_root =True
c.NotebookApp.ip = *
c.NotebookApp.open_browser = False
c.NotebookApp.password=sha1:31aa1f72a166:6e5525209746d175ed15e12a3351ae745abed882323
c.NotebookApp.port=8888
添加pystark的变量
vim .bashrc

export SPARK_HOME="/opt/cloudera/parcels/CDH-6.2.1-1.cdh6.2.1.p0.1425774/lib/spark"

安装模块

pip install findspark
pip install findspark -i https://mirrors.aliyun.com/pypi/simple
pip install pycryptodome -i https://mirrors.aliyun.com/pypi/simple

pip install multiprocessing -i https://mirrors.cloud.tencent.com/pypi/simple

https://files.pythonhosted.org/packages/26/75/30370b9135034d809475cb4ef711079ddd6f0e302a17aef4982d5cee5942/grpcio-1.51.0.tar.gz

pip install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple
pip install tensorflow==1.14.0 -i https://mirrors.aliyun.com/pypi/simple
pip install tensorflow==2.7.3 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install tensorflow==2.7.3 -i http://pypi.douban.com/simple/
pip install tensorflow==2.7.3 -i https://pypi.mirrors.ustc.edu.cn/simple
pip install beautifulSoup -i https://mirrors.cloud.tencent.com/pypi/simple

modin
pip install beautifulSoup -i https://mirrors.aliyun.com/pypi/simple

pip install pyhive -i https://mirrors.aliyun.com/pypi/simple

pip install wrapt --ignore-installed -i https://mirrors.aliyun.com/pypi/simple
pip3 install --upgrade protobuf==3.20.1 -i https://mirrors.aliyun.com/pypi/simple
启动
nohup jupyter notebook > /root/jupyter.log 2>&1 &


以上是关于算法环境jupyter安装及启动的主要内容,如果未能解决你的问题,请参考以下文章

【jupyter notebook】—— 安装和启动

01-fidder配置和jupyter环境安装

jupyter notebook 的安装及使用

Centos7安装Miniconda及配置jupyter

Jupyter环境的默认目录和默认浏览器修改

Ubuntu 16 安装TensorFlow及Jupyter notebook