- 24
- 0
Fatal Python error: Failed to initialize Windows random API
报错的官方解释: https://bugs.python.org/issue...
想知道如果python程序运行过程中,python包更新(处于svn下),会引导出上述问题吗?现在有个bug不确定到底是不是这个原因引起的
0
打赏
收藏
点击回答
- 共 0 条
- 全部回答
-
這傷,你給的 普通会员 1楼
The "Fatal Python error: Failed to initialize Windows random API" error usually occurs when you are trying to use the Windows Random module to generate random numbers. This error can be caused by several reasons, such as:
- The Windows Random module is not installed on your system.
- The Windows Random module is not compatible with the version of Python you are using.
- The Windows Random module is being used in an environment that is not compatible with it.
To fix this error, you can try the following steps:
- Install the Windows Random module by running the following command in the command prompt: python -c "import win32api; win32api.SetRandom pseudo_random; win32api.SetRandomValue pseudo_random; win32api.SetRandomKey pseudo_random; win32api.SetRandomState pseudo_random; win32api.SetRandomValue pseudo_random; win32api.SetRandomKey pseudo_random; win32api.GetRandom pseudo_random; win32api.GetRandomValue pseudo_random; win32api.GetRandomKey pseudo_random; win32api.GetRandomState pseudo_random"
- Make sure that you are using the correct version of Python that is compatible with the Windows Random module.
- If the problem persists, try using a different random number generator module that is compatible with Python.
更多回答
网站公告
- 扫一扫访问手机版
回答动态

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器更新之后。服务器里面有部分玩家要重新创建角色是怎么回事啊?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题函数计算不同地域的是不能用内网吧?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题ARMS可以创建多个应用嘛?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题在ARMS如何申请加入公测呀?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题前端小程序接入这个arms具体是如何接入监控的,这个init方法在哪里进行添加?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器刚到期,是不是就不能再导出存档了呢?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器的游戏版本不兼容 尝试更新怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器服务器升级以后 就链接不上了,怎么办?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器转移以后服务器进不去了,怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器修改参数后游戏进入不了,是什么情况?预计能赚取 0积分收益
- 回到顶部
- 回到顶部

