【问题标题】:TypeError: Protocols cannot be instantiated类型错误:无法实例化协议
【发布时间】:2023-02-10 16:59:01
【问题描述】:

当在 VSCode 上运行以下代码行时会出现错误:

streamlit run "filename.py"

可以在下图中看到该错误。

本地主机一直显示“请稍候...”

可能是什么问题?

【问题讨论】:

    标签: python streamlit


    【解决方案1】:
    1. 打开powershell.exe

    2. 科帕斯

      设置执行策略 -ExecutionPolicy RemoteSigned -Scope CurrentUser

    3. 然后运行

      回到印尼盾

      • 去设置

      • 搜索“终端窗口执行程序”(vscode)

      • 如果pycharm搜索“终端”>工具>终端> shell路径

      • 改变

        C:WindowsSystem32WindowsPowerShell1.0powershell.exe

      如果还是不行

      pip install streamlit --upgrade
      

      这对我有用

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-10-16
      • 2014-12-03
      • 2014-03-16
      • 2015-02-28
      • 1970-01-01
      • 1970-01-01
      • 2022-01-19
      • 1970-01-01
      相关资源
      最近更新 更多