【报错信息】环境安装、python

文章目录

  • 环境安装
  • These packages do not match the hashes from the requirements file
  • python报错
  • bash命令报错找不到argparse的参数
  • 环境安装

    These packages do not match the hashes from the requirements file

    报错

    ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    

    解决方式,加个--no-cache-dir,如pip install --no-cache-dir flask
    这里的问题是,当 pip 尝试使用缓存在 pip 缓存目录中的旧哈希值安装 Python 包时,Python 包已使用新哈希值更新。在尝试安装 pip 之前,需要清除此缓存。

    python报错

    bash命令报错找不到argparse的参数

    参考报错
    注意,bash中python后面的参数换行\之后不可以有空格!

    作者:在雨中612

    物联沃分享整理
    物联沃-IOTWORD物联网 » 【报错信息】环境安装、python

    发表回复