MALOUDA-PSA 2025-05-28 22:37 采纳率: 85.6%
浏览 5

python安装子模块报错

python3.6 安装PIP INSTALL RASA 报错:

Collecting SQLAlchemy<1.5.0,>=1.3.3 (from rasa)
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec
tion broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org', po
rt=443): Read timed out. (read timeout=15)",)': /simple/sqlalchemy/
  Could not find a version that satisfies the requirement SQLAlchemy<1.5.0,>=1.3
.3 (from rasa) (from versions: )
No matching distribution found for SQLAlchemy<1.5.0,>=1.3.3 (from rasa)
You are using pip version 9.0.1, however version 25.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.

  • 写回答

5条回答 默认 最新

  • 阿里嘎多学长 2025-05-28 22:37
    关注

    阿里嘎多学长整理AIGC生成,因移动端显示问题导致当前答案未能完全显示,请使用PC端查看更加详细的解答过程

    解决方案

    你遇到的问题是Python安装Rasa时遇到了错误,错误信息中提到的是安装SQLAlchemy模块时出错。这个问题可能是由于Python版本或依赖关系的问题。

    解决方案:

    1. 检查Python版本:确保你使用的Python版本是3.6或更高版本。
    2. 检查依赖关系:使用pip freeze命令查看当前安装的依赖关系,确保没有其他依赖关系冲突。
    3. 尝试使用pip install --upgrade rasa命令升级Rasa模块。
    4. 尝试使用pip install --force-reinstall rasa命令强制重新安装Rasa模块。

    如果以上解决方案都不能解决问题,可以尝试查看错误日志,了解错误的具体原因。

    代码

    pip install --upgrade rasa
    

    pip install --force-reinstall rasa
    
    评论

报告相同问题?

问题事件

  • 创建了问题 5月28日