【发布时间】:2020-12-31 08:15:04
【问题描述】:
当我尝试在 bash 中使用 python3 打开 py 时,我得到 ImportError: cannot import name 'getuid' from 'os' 我试图打开对 HiddenEye 的协议,但我不明白为什么会出现此错误?
【问题讨论】:
标签: bash error-handling git-bash
当我尝试在 bash 中使用 python3 打开 py 时,我得到 ImportError: cannot import name 'getuid' from 'os' 我试图打开对 HiddenEye 的协议,但我不明白为什么会出现此错误?
【问题讨论】:
标签: bash error-handling git-bash
看起来 os.getuid() 是一个仅适用于 Unix 的函数。您要么需要编辑代码以使用跨平台功能,要么在 Unix 操作系统上运行它。
【讨论】: