from gevent import monkey;monkey.patch_all()
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\Users\Avidly\AppData\Local\Programs\Python\Python36-32\lib\site-packages\gevent\monkey.py", line 1202, in patch_all
_notify_patch(events.GeventWillPatchAllEvent(modules_to_patch, kwargs), _warnings)
File "C:\Users\Avidly\AppData\Local\Programs\Python\Python36-32\lib\site-packages\gevent\monkey.py", line 184, in _notify_patch
notify_and_call_entry_points(event)
File "C:\Users\Avidly\AppData\Local\Programs\Python\Python36-32\lib\site-packages\gevent\events.py", line 104, in notify_and_call_entry_points
subscriber = plugin.load()
File "C:\Users\Avidly\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pkg_resources\__init__.py", line 2452, in load
self.require(*args, **kwargs)
File "C:\Users\Avidly\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pkg_resources\__init__.py", line 2475, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "C:\Users\Avidly\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pkg_resources\__init__.py", line 787, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'cffi>=1.12.2; platform_python_implementation == "CPython" and sys_platform == "win32"' distribution was not found and is required by the application
from gevent import monkey;monkey.patch_all()
最后一句:pkg_resources.DistributionNotFound: The 'cffi>=1.12.2; platform_python_implementation == "CPython" and sys_platform == "win32"' distribution was not found and is required by the application
C:\Users\Avidly>pip install cffi==1.12.2
Collecting cffi==1.12.2
Downloading cffi-1.12.2-cp36-cp36m-win32.whl (159 kB)
|████████████████████████████████| 159 kB 297 kB/s
Requirement already satisfied: pycparser in c:\users\avidly\appdata\local\programs\python\python36-32\lib\site-packages (from cffi==1.12.2) (2.20)
Installing collected packages: cffi
Attempting uninstall: cffi
Found existing installation: cffi 1.14.5
Uninstalling cffi-1.14.5:
Successfully uninstalled cffi-1.14.5
Successfully installed cffi-1.12.2
再次引用解决问题.