我在代码中使用gevent的方式是:
from gevent import monkey
monkey.patch_all()
from gevent.pool import Pool
构建代码时,我得到以下内容 例外:
Traceback (most recent call last):
File "/build/toolchain/lin32/python-2.6.1/lib/python2.6/runpy.py", line 121, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/build/toolchain/lin32/python-2.6.1/lib/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "bazel-bin/gobuild/bin/gobuild-server-status.par/__main__.py", line 13, in <module>
File "bazel-bin/gobuild/bin/gobuild-server-status.par/pypi__gevent_0_13_1/gevent/__init__.py", line 41, in <module>
ImportError: cannot import name core
我正在使用gevent版本:0.13和python:2.7.15