• Python---virtualenv + Tensorflow + 安装jupyter notebook


      一、ubuntu系统下安装完caffe后,安装 jupyter notebook。

    在终端中执行,安装指令:

    sudo pip install jupyter 

    安装完成后运行 notebook : 

    jupyter notebook 

    或  

    ipython notebook 

    二、ubuntu系统下,使用virtualenv安装完tensorfow后,安装 jupyter notebook。

    主要步骤:

    1. 进入虚拟环境

      source myproject/bin/activate

    2. 安装 IPykernel
    1. < python2 >
    2. pip install ipykernel
    3. < python3 >
    4. pip3 install ipykernel
    1. 将 Virtualenv 加入IPykernel
    1. < python2 >
    2. python2 -m ipykernel install --user --name=myproject
    3. < python3 >
    4. python3 -m ipykernel install --user --name=myproject
      例如:python -m ipykernel install --user --name=tensorflow  (环境名)

             4.启动jupyter notebook并更改kernel

     

     

  • 相关阅读:
    网络之传输层
    局域网的物理组成
    网络基础
    RAID磁盘阵列
    mount挂载和交换分区swap
    Linux文件系统
    sed命令基础2
    sed命令基础
    LVM基础
    磁盘配额基础
  • 原文地址:https://www.cnblogs.com/carle-09/p/9590395.html
Copyright © 2020-2023  润新知