Closed zhanglianbo35 closed 3 years ago
我也是这个提示,什么情况?
可能是gevent库和Python版本不兼容, 试试重新安装subfinder。
重新装了也没用
升级gevent试试, pip install --upgrade gevent
.
依然收到 “
pip3 install -U --force-reinstall --no-binary :all: gevent
918 黑裙,upgrade gevent 的时候报这个错: ERROR: Could not find a version that satisfies the requirement geven ERROR: No matching distribution found for geven
补充一下,搞定了: Package Version Latest Type
gevent 1.5.0 20.12.0 wheel setuptools 19.6 51.1.0 wheel 先更新setuptools,在更新gevent,就可以运行了。 不能运行的兄弟,可以pip全部更新一下试试。
macos python3.8遇到相同问题,重新安装greenlet 0.4.14版本解决: pip install -U --force-reinstall greenlet==0.4.14
上面提到的问题都是由于 subfinder 的依赖中指定的 gevent 版本过低, 将 gevent 强制升级到最新版本就好了.
pip install -U upgrade-strategy eager gevent
> pip install --help
...
-U, --upgrade Upgrade all specified packages to the newest available version. The handling of dependencies depends on the upgrade-strategy used.
--upgrade-strategy <upgrade_strategy>
Determines how dependency upgrading should be handled [default: only-if-needed]. "eager" - dependencies are upgraded regardless of whether the currently installed version satisfies
the requirements of the upgraded package(s). "only-if-needed" - are upgraded only when they do not satisfy the requirements of the upgraded package(s).
...
我已经在最新版本(2.0.2)的 subfinder 中修复了这个问题.
不好意思。我不知道为啥,我在群晖上面装了好多次(无论是pip 安装,还是下载安装包安装),版本还是停留在2.0.1, issue依然存在。
Collecting subfinder
Using cached subfinder-2.1.0-py3-none-any.whl (236 kB)
Requirement already satisfied: rarfile in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from subfinder) (4.0)
Requirement already satisfied: gevent<22.0.0,>=21.1.2 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from subfinder) (21.1.2)
Requirement already satisfied: beautifulsoup4<5.0.0,>=4.9.3 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from subfinder) (4.9.3)
Requirement already satisfied: requests in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from subfinder) (2.25.1)
Requirement already satisfied: six in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from subfinder) (1.15.0)
Requirement already satisfied: lxml in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from subfinder) (4.6.2)
Requirement already satisfied: soupsieve>1.2 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from beautifulsoup4<5.0.0,>=4.9.3->subfinder) (2.2)
Requirement already satisfied: setuptools in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from gevent<22.0.0,>=21.1.2->subfinder) (54.1.0)
Requirement already satisfied: zope.event in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from gevent<22.0.0,>=21.1.2->subfinder) (4.5.0)
Requirement already satisfied: zope.interface in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from gevent<22.0.0,>=21.1.2->subfinder) (5.2.0)
Requirement already satisfied: greenlet<2.0,>=0.4.17 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from gevent<22.0.0,>=21.1.2->subfinder) (1.0.0)
Requirement already satisfied: idna<3,>=2.5 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from requests->subfinder) (2.10)
Requirement already satisfied: chardet<5,>=3.0.2 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from requests->subfinder) (4.0.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from requests->subfinder) (1.26.3)
Requirement already satisfied: certifi>=2017.4.17 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from requests->subfinder) (2020.12.5)
Installing collected packages: subfinder
Successfully installed subfinder-2.1.0
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
<frozen importlib._bootstrap>:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject
subfinder 2.0.1
@zhanglianbo35
pip install -U subfinder
试过的了。还是一样
可能你的 Python 环境已经被你搞乱了, 不知道具体情况我也无法给出解决方法.
可以试试创建一个新的虚拟环境, 然后在虚拟环境中安装 subfinder.
群晖Python升级后就这样了。