【问题标题】:Is there a way to install pytest on wingide?有没有办法在wingide上安装pytest?
【发布时间】:2022-11-11 03:15:20
【问题描述】:

我知道这似乎是一个愚蠢的问题,但是有没有办法在我需要的时候在wingide上安装pytest。

我曾尝试寻找教程并获得帮助,但我似乎无法弄清楚。

【问题讨论】:

    标签: python pytest wing-ide


    【解决方案1】:

    您应该能够使用 pip 安装它:

    pip install pytest
    

    或者:

    python -m pip install pytest
    

    您必须确保使用正确的 pip 或 python,以匹配您在 Wing 中使用的。如果你有 Wing Pro,你也可以使用 Tools 菜单中的 Packages 工具来安装 pytest。使用工具选项菜单中的安装新软件包。

    请注意,如果您在 Wing 运行时安装了 pytest,则必须重新启动调试过程或 Python Shell(从其选项菜单中),然后才能导入 purest。

    【讨论】:

    • 我的意思是我的问题中的 pytest 不是最纯粹的
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-17
    • 2012-10-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多