bash - Windows 10 'cannot import name ' getuid' 从 'os'

标签 bash error-handling git-bash

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

最佳答案

看起来 os.getuid() 是一个仅限 Unix 的函数。您要么需要编辑代码以使用跨平台功能,要么在 Unix 操作系统上运行它。
来源:https://github.com/Parsely/streamparse/issues/415

关于bash - Windows 10 'cannot import name ' getuid' 从 'os',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63870215/

相关文章:

bash - crontab 和手动运行脚本之间的不同结果

oracle - SQLERRM被覆盖

c - 检查返回 int 的函数时出错

visual-studio-code - 如何将 Git Bash 添加到 VsCode

git - 团队城市 Git "Host key verification failed"

linux - While循环性能:极慢

bash - 我可以返回并更改之前在 Bash 中重复的一行吗?

java - 我的Java版本是最新版本,但我的JVM仍然是1.5?

windows - Git Bash - 段错误问题(Windows)

Windows 上的 Ubuntu 上的 Bash 无法启动