python-3.7 - Ray 库抛出“setpgrp failed”错误
问题描述
我是 Ray 库的新手,当我执行它时,我发现了一些错误
import ray
# Start Ray. If you're connecting to an existing cluster, you would use
# ray.init(address=<cluster-address>) instead.
ray.init()
错误:
2019-12-30 09:39:42,656 警告 services.py:597 -- setpgrp 失败,进程可能无法正确清理:[Errno 1] 不允许操作。
我认为由于这个错误,所以当我运行我的代码时,我的内核会死掉。
# Execute Python functions in parallel.
import ray
ray.init()
@ray.remote
def f(x):
return x * x
futures = [f.remote(i) for i in range(4)]
print(ray.get(futures))
解决方案
推荐阅读
- ionic-framework - iOS13 中 ionic V3 的扫描已经在进行中的问题
- linux - 您如何在 Windows 上为 SageMaker 编写生命周期配置?
- python - Alexa Skill Development 使用 flask-ask 和 ngrok 错误
- python - Selenium 使用 scrapy-selenium 模块从多个 JavaScript 页面中抓取数据
- c++ - 将 std::u16string 转换为 NSString
- ruby-on-rails - 未定义的方法“alias_method_chain”将 Spree 从 3.2 更新到 3.3
- flutter - Flutter 缓存问题:未为“Book”类型定义运算符“[]”
- elasticsearch - 有没有办法阻止访问 Elasticsearch 内置 API,例如 /_nodes?, /_cluster, /_cat 等?
- angular - 调试谷歌浏览器中不显示角度错误
- angular - 使用 Pact 和 Angular 进行 API 合约测试