linux升级python 并 安装jupyter-lab


linux 升级python

  1. wget https://www.python.org/ftp/python/3.9.14/Python-3.9.14.tgz
  2. tar -xvzf Python-3.9.13.tgz
  3. cd Python-3.9.14
  4. ./configure
  5. make && make install
  6. mv /usr/bin/python3 /usr/bin/python3.bak
  7. ln -s /usr/local/bin/python3.9 /usr/bin/python3
  8. pip3 install jupyterlab
  9. jupyter-lab --generate-config
  10. vim jupyter_lab_config.py
  11. jupyter-lab password
  12. c.ServerApp.allow_origin = '*'
    c.ServerApp.ip = '*'
    # 禁用自动浏览器打开jupyter
    c.ServerApp.open_browser = False
    # jupyter lab服务器的端口
    c.ServerApp.port = 8888
    # 允许远程访问 
    c.ServerApp.allow_remote_access = True
    # 工作根目录
    c.ServerApp.root_dir = '/usr/local/lighthouse/softwares/jupyter/jupyter-workdir/'
  1. jupyter-lab -f jupyter_lab_config.py --ip 10.0.24.7 --allow-root

声明:Hello World|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - linux升级python 并 安装jupyter-lab


我的朋友,理论是灰色的,而生活之树是常青的!