centos7 jupyter notebook 설치 및 원격 접근(jupyter command not found), 빠른 설치python3 환경(No module named ssl)

2195 단어 지식점
참조:https://www.jianshu.com/p/960f011f712e https://blog.csdn.net/m0_37903789/article/details/84657482?
1、  jupyter

pip3 isntall jupyter

2、      
jupyter notebook --generate-config

3、    
  python  :

from notebook.auth import passwd 
passwd() 
           (          jupyter ),         (         ) 
************


4、      
vim ~/.jupyter/jupyter_notebook_config.py

c.NotebookApp.ip='*'                                   #       ip      
c.NotebookApp.password ='sha:ce...'       #          '  
c.NotebookApp.open_browser = False       #            
c.NotebookApp.port =8888                         #           
c.NotebookApp.notebook_dir = '/home/xxx'		#       


5、        jupyter notebook

jupyter notebook --allow-root


5、            ip:8888      ,    ,        




참고:
nohup jupyter notebook --allow-root  &			#     jupyter  ,nohup  ssh  ,     。&     


jupyter: command not found、No module named '_ssl
참조:http://www.cppcns.com/jiaoben/python/239819.html
1、  1.0.2   openssl
wget http://www.openssl.org/source/openssl-1.1.1.tar.gz
tar -zxvf openssl-1.1.1.tar.gz
cd openssl-1.1.1
./config --prefix=$HOME/openssl shared zlib
make && make install

2、      LD_LIBRARY_PATH
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/openssl/lib" >> $HOME/.bash_profile
source $HOME/.bash_profile

3、        python3  make,  --with-openssl=$HOME/openssl
tar -zxvf Python-3.7.0.tgz
./configure --prefix=$HOME/Py37 --with-openssl=$HOME/openssl
make && make install
1、    

yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make -y
yum install libffi-devel -y


2、  python3
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz

3、      

   
tar -zxvf Python-3.7.0.tgz

        ,              
./configure prefix=/usr/local/python3

    
make && make install


4、     (python2、python3  )

ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip3
      python3  python3  ,pip3   python3    wheel。





좋은 웹페이지 즐겨찾기