最近更新了python解释器3.7python
结果安装gevent,在导入gevent以后就报错了,错误信息以下this
RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144, got 128
return f(*args, **kwds)
看到如今写这个问题的帖子很少,就先贴出来了。spa
只须要执行一下下面这段代码就能够了3d
pip3 install -U --force-reinstall --no-binary :all: gevent
附上参数说明code
-U, --upgrade Upgrade all specified packages to the newest available version. The handling of dependencies depends on the upgrade-strategy used. --force-reinstall Reinstall all packages even if they are already up-to-date. --no-binary <format_control> Do not use binary packages. Can be supplied multiple times, and each time adds to the existing value. Accepts either :all: to disable all binary packages, :none: to empty the set, or one or more package names with commas between them. Note that some packages are tricky to compile and may fail to install when this option is used on them.
这条命令的大概意思就是使用非二进制的包从新安装gevent以及它的依赖。orm
总之在执行这个命令以后就完美的解决问题了。blog
目前安装的gevent版本和greenlet版本分别是1.3.5和0.4.14ip