zoukankan      html  css  js  c++  java
  • 【E-26】ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/opt/miniconda3/lib/python3.7/site-packages/mistune-0.8.4.dist-info/METADATA'

    一、问题源头

    一直运行好的jupyter突然起不来了,我就将其删除,准备重新安装,结果一直提示以下错误:(本文是anaconda安装的,自带jupyter,突然出的问题)

    二、原因或排查方式

    发现文档下面没有

    另外一个容器内是这样的:

    提示多个路径下的文件不存在。未知原因导致了文件删除

    三、解决方案

    1、先从其他docker中导入相应的文件到原来的位置;

    2、使用pip list查看jupyter相关的包,都一一进行pip uninstall 删除掉;

    3、再安装: conda install jupyter notebook;提示以下错误:

    boto3.client('s3') # https://github.com/conda/conda/issues/8993

    AttributeError: module 'boto3' has no attribute 'client'

    4、删除,jmespath,卸载boto3,安装boto3

    # jmespath was also blocking pip

    rm -rf /Users/<home>/anaconda3/lib/python3.7/site-packages/jmespath*

    pip uninstall boto3

    pip uninstall botocore

    pip install boto3

    5、再次安装 conda install jupyter notebook

    注意:中间使用pip install jupyter不行,提示路径错误。

  • 相关阅读:
    spring的原理
    角色&权限
    Redis在springboot项目的使用
    项目接口的设计思想
    springboot项目注册接口
    Redis
    cookie&session
    python enumerate()
    原来,一直没有完全理解range()函数
    python zip()和zip(*)方法
  • 原文地址:https://www.cnblogs.com/yifanrensheng/p/14218676.html
Copyright © 2011-2022 走看看