python3.7导入gevent模块报错的解决方案

pip3 install -U --force-reinstall --no-binary :all: gevent

附上参数说明

-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.

posted @ 2022-12-29 16:34  つつつつつつ  阅读(88)  评论(0编辑  收藏  举报