美文网首页
jupyter notebook安装失败(windows下,py

jupyter notebook安装失败(windows下,py

作者: 乔咏田 | 来源:发表于2019-11-01 15:28 被阅读0次

问题描述

  • 环境:windows10,使用conda虚拟环境,python36环境
  • 安装jupyter notebook
pip install notebook -i https://pypi.douban.com/simple/
  • 安装过程中遇到pyrsistent的错误
Building wheels for collected packages: pyrsistent
    Running setup.py bdist_wheel for pyrsistent ... error
    Failed building wheel for pyrsistent
    Running setup.py clean for pyrsistent

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa1 in position 38: invalid start byte

解决方案

  • 删除安装失败的pyrsistent目录
目录位置参考:D:\ProgramData\Miniconda3\envs\python36\Lib\site-packages
删除pyrsistent安装目录,如:pyrsistent-0.15.5-py3.6.egg-info
  • 已经尝试直接使用pip进行安装,本人尝试结果为安装失败
  • 已经尝试pyrsistent中的issue中的方案,均失败。

使用源码安装pyrsistent

  • 下载源码安装包
源码链接:https://github.com/tobgu/pyrsistent
release:https://github.com/tobgu/pyrsistent/releases
  • 进入对应目录,安装
python setup.py install
  • 重新安装jupyter notebook,成功
pip install notebook -i https://pypi.douban.com/simple/

相关文章

网友评论

      本文标题:jupyter notebook安装失败(windows下,py

      本文链接:https://www.haomeiwen.com/subject/izofbctx.html