【问题标题】:Windows 10 'cannot import name 'getuid' from 'os'Windows 10 '无法从'os'导入名称'getuid'
【发布时间】:2020-12-31 08:15:04
【问题描述】:

当我尝试在 bash 中使用 python3 打开 py 时,我得到 ImportError: cannot import name 'getuid' from 'os' 我试图打开对 HiddenEye 的协议,但我不明白为什么会出现此错误?

【问题讨论】:

    标签: bash error-handling git-bash


    【解决方案1】:

    看起来 os.getuid() 是一个仅适用于 Unix 的函数。您要么需要编辑代码以使用跨平台功能,要么在 Unix 操作系统上运行它。

    来源:https://github.com/Parsely/streamparse/issues/415

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-06
      相关资源
      最近更新 更多