python3 利用pip安装ipython notebook
2017-09-24 18:20
661 查看
python 3.6 ,因为不想安装anaconda,但是ipyhon notebook一直出错,所以搞好后特此纪念一下。
1命令行输入pip install ipython[all], 安装ipython
2 命令行输入ipython notebook,发现并不能运行,报错:ModuleNotFoundError: No module named 'markupsafe._compat'
3 通过pip list 查看已经安装的包,发现已经安装markupsafe,但是在python环境下 import markupsafe._compat却发现没有这个模块,感觉像是是这个模块安装未成功,所以重新安装这个包。先通过pip uninstall markupsafe 卸载这个包。然后pip list ,确认卸载此模块。
4 重新安装markupsafe这个模块:先不要直接pip install markupsafe安装,因为会发现错误:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6。但是这个时候你在pip list就会发现这个markupsafe已经安装好了,所以先pip uninstall markupsafe,确保,确保,确保这个包卸载。 打开python位置:C:\Python36\Lib\site-packages\pip\compat,用文本编辑器(如记事本)打开__init__.py,在第75行return
s.decode('utf_8'),把这一行替换为return s.decode('cp936')。这个是pip安装模块经常碰到的错误。改完后保存,退出。再pip install markupsafe就可以正常安装这个包了。
5 正常安装完这个包之后再ipython notebook,就发现可以打开了。
如果有帮助,请点赞,或是劳驾光临下评论区,让我看看帮助了多少人,谢谢【笑哭】
1命令行输入pip install ipython[all], 安装ipython
2 命令行输入ipython notebook,发现并不能运行,报错:ModuleNotFoundError: No module named 'markupsafe._compat'
3 通过pip list 查看已经安装的包,发现已经安装markupsafe,但是在python环境下 import markupsafe._compat却发现没有这个模块,感觉像是是这个模块安装未成功,所以重新安装这个包。先通过pip uninstall markupsafe 卸载这个包。然后pip list ,确认卸载此模块。
4 重新安装markupsafe这个模块:先不要直接pip install markupsafe安装,因为会发现错误:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6。但是这个时候你在pip list就会发现这个markupsafe已经安装好了,所以先pip uninstall markupsafe,确保,确保,确保这个包卸载。 打开python位置:C:\Python36\Lib\site-packages\pip\compat,用文本编辑器(如记事本)打开__init__.py,在第75行return
s.decode('utf_8'),把这一行替换为return s.decode('cp936')。这个是pip安装模块经常碰到的错误。改完后保存,退出。再pip install markupsafe就可以正常安装这个包了。
5 正常安装完这个包之后再ipython notebook,就发现可以打开了。
如果有帮助,请点赞,或是劳驾光临下评论区,让我看看帮助了多少人,谢谢【笑哭】
相关文章推荐
- python3 利用pip安装ipython notebook
- JuPyter(IPython) Notebook中通过pip安装第三方Python Module
- JuPyter(IPython) Notebook中通过pip安装第三方Python Module
- Windows 下面安装和使用Python, IPython NoteBook (详细步骤)
- python ipython notebook或者 jupyter notebook 的安装
- Python -- 关于pip安装Ipython
- win7搭建Python开发环境(下篇--安装pip和ipython解释器)
- Windows7基于Python3.5安装Ipython notebook(现称jupyter)
- ubuntu安装pip+python27+ipython+scrapy+zlib-及遇到的各种问题解决
- Python,IPython,qtconsole,Notebook,Jupyter快速安装教程
- pycharm中使用jupyter notebook——利用pip安装jupyter
- Python,IPython notebook,Jupyter notebook的安装
- python2.7安装 利用pip安装其他镜像配置(解决 Trusted--Host 问题)
- 安装python,setuptools,get-pip.py,ipython构建python开发环境
- Centos升级Python 2.7并安装pip、ipython
- Python,Jupyter Notebook,IPython快速安装教程
- Jupyter Notebook通过pip安装python模块
- python3安装与Ipython notebook的安装【Linux】
- python 利用pip 安装 卸载 更新某个模块
- Python初接触-安装Python运行环境:Python2.7,pip,ipython