1、在终端中输入‘sudo pip3 install jupyter’, 出现黄色的‘warring',如下:

The directory '/home/stone/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/stone/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

解决方法:

在sudo 后面添加-H
sudo -H pip3 install jupyter

2、在安装jupyter过程中,出现了红色的’exception'

Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2482, in _dep_map
return self.__dep_map
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2344, in __getattr__
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map

解决方法:

在终端中,安装jupyter 之前,输入

sudo pip3 install -vU setuptools

3、jupyter 无法运行,提示kernet died

问题描述:

在terminal 下运行 jupyter notebook, 随后在chrome下打开一个py文件,

浏览器下出现“The kernel has died, and the automatic restart has failed”对话框,

可能问题原因

ipykernel的版本太老了,或者之前安装其他python版本的时候,有冲突的 ipykernel_launcher

解决方法:
所以通过upgrade ipykernel,terminal 输入

for python 2.    sudo pip install --upgrade ipykernel
for python 3.    sudo pip3 install --upgrade ipykernel

4、jupyter 无法运行,提示kernet died

问题描述:

jupyter 无法运行,提示kernet died

terminal中显示:ImportError: cannot import name ‘create_prompt_application’

可能原因:

原因是prompt-toolkit版本不匹配
我安装的是 prompt-toolkit-0.0.10

解决方法:

pip3 install prompt-toolkit==1.0.15

5、pip3安装工具包时很慢

问题原因:

系统默认的镜像源在国外,转到国内就好了

方法:

在家目录下创建.pip目录

sudo mkdir .pip

然后创建pip.conf文件

sudo touch .pip/pip.conf
sudo vim .pip/pip.conf

添加下面两行:

[global]
  index-url = http://mirrors.aliyun.com/pypi/simple
  [install]
  trusted-host=mirrors.aliyun.com

保存,esc, vim 保存并退出:wq.

Ubuntu 安装和使用 jupyter 出现的问题总结相关推荐

  1. Ubuntu 安装 IPython、jupyter notebook

    1. 升级 pip sudo pip3 install --upgrade pip 2. 安装 IPython IPython 5.x 是最后一个支持 Python2 的 IPython . sudo ...

  2. Ubuntu安装jupyter,启动出现ModuleNotFoundError: No module named ‘pysqlite2‘ 错误

    Ubuntu安装jupyter,启动出现ModuleNotFoundError: No module named 'pysqlite2' 错误 错误描述 错误定位 解决错误 后记 错误描述 Ubunt ...

  3. 一篇解决:Ubuntu安装配置、软件、工具、快捷键

    Ubuntu安装配置.软件.工具.快捷键 记录作者配置windows.Ubuntu双系统的各种细节. 此帖说明了Ubuntu初期配置的许多问题,也介绍了很多使用技巧,持续更新. 文章目录 Ubuntu ...

  4. Ubuntu安装MongoDB

    https://jingyan.baidu.com/article/e5c39bf5f5ddd539d76033a9.html Ubuntu安装MongoDB4.0: https://www.jian ...

  5. ubuntu安装OpenCV详细教程(建议收藏)

    记录一篇"如何安装ubuntu下C++接口的opencv"的文章.由于转载格式有问题,直接贴个链接:ubuntu安装opencv的正确方法 注意:本人根据此博客安装遇到的问题:2. ...

  6. Linux/ubuntu 安装 redis 4.0报错解决:redis-server.service: Can't open PID file /var/run/redis/redis-server.

    此文首发于我的个人博客:Linux/ubuntu 安装 redis 4.0报错解决:redis-server.service: Can't open PID file /var/run/redis/r ...

  7. debian,ubuntu 安装mongodb 允许外网访问,修改端口,设置用户和密码

    使用apt安装mongodb: apt update && apt install mongodb 查看运行状态: systemctl status mongodb.service 结 ...

  8. ubuntu安装KVM

    ubuntu安装KVM 现在官网下载ubuntu镜像,桌面版或者服务端都可,这里以桌面端为例. 安装之前确保磁盘有足够大的空间(这很重要) 安装KVM sudo apt install qemu-kv ...

  9. 解决Ubuntu安装依赖问题

    解决Ubuntu安装依赖问题 解决Ubuntu安装依赖问题 最主要问题,修改的国内镜像源可能不是对应的ubuntu版本,大部人直接找了个镜像源就复制到source.list里面了,其实需要对应版本的, ...

最新文章

  1. php主要算法设计,四种排序算法设计(PHP)
  2. 动态折线图 python_python 怎么做个动态折线
  3. poj1664(放苹果)
  4. UVA1602 Lattice Animals 网格动物
  5. AI:IPPR的数学表示-CNN方法
  6. Maximal Rectangle
  7. Java之WeakReference与SoftReference使用讲解
  8. 如何学习IOS开发~三个字(学思做)
  9. X64_Xcelera-CL_PX4采集卡测试记录
  10. visionpro图片读取、写入
  11. IntelliJ IDEA使用技巧(三)——Debug 篇
  12. HCIP-Cloud Service Solutions Architect
  13. 【Keil 5】STM32F401CCU6 固件库配置(超详细教程)
  14. Maven第7篇:聚合、继承、单继承问题详解
  15. 如何搭建DNS--域名系统
  16. 熊猫人表情包python 代码_用Python爬取斗图网表情包
  17. 怎样使用轻快pdf阅读器
  18. 超炫的3D特效相册功能android
  19. 细粒度图像分类(FGVC)--- 综述
  20. ERP的实施--把握三大计划

热门文章

  1. 利用瑞利里兹方法计算固有频率的程序_不可不知的电机磁致伸缩计算方法
  2. 消息中间件系列(七):如何从0到1设计一个消息队列中间件
  3. 论文浅尝 | Knowledge Vault: 全网规模的知识概率融合方法
  4. 工程实践:基于规则句法的事件关系与主谓宾三元组抽取项目实现
  5. 计蒜客 28437.Big brother said the calculation-线段树+二分-当前第k个位置的数 ( ACM训练联盟周赛 M)...
  6. MVC系列——MVC源码学习:打造自己的MVC框架(一:核心原理)(转)
  7. 8 线程安全且高效的单例模式
  8. GIt 从入门到放弃
  9. javascript中的Base64.UTF8编码与解码详解
  10. javascript 学习笔记(一)