jupyter notebook安装失败(windows下,pyrsistent错误)

问题描述

  • 环境: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/
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容