Closed fireflycao closed 3 years ago
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
缺少Microsoft Visual C++ 14.0.
C:\Users\BruceCao>subfinder Z:\Movies\Rogue.2020.1080p.BluRay.x265-RARBG\Rogue.2020.1080p.BluRay.x265-RARBG.mp4
Traceback (most recent call last):
File "c:\users\brucecao\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\brucecao\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\BruceCao\AppData\Local\Programs\Python\Python39\Scripts\subfinder.exe__main__.py", line 4, in
C:\Users\BruceCao>subfinder -h
Traceback (most recent call last):
File "c:\users\brucecao\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\brucecao\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\BruceCao\AppData\Local\Programs\Python\Python39\Scripts\subfinder.exe__main__.py", line 4, in
@fireflycao 你安装的是Python3.9吧,gevent这个库还不支持Python3.9. 试试低一点版本的Python.
pip install subfinder Collecting subfinder Using cached subfinder-2.0.1-py2.py3-none-any.whl (235 kB) Requirement already satisfied: six in c:\users\brucecao\appdata\local\programs\python\python39\lib\site-packages (from subfinder) (1.15.0) Requirement already satisfied: rarfile in c:\users\brucecao\appdata\local\programs\python\python39\lib\site-packages (from subfinder) (4.0) Collecting gevent<2.0.0,>=1.4.0 Using cached gevent-1.5.0.tar.gz (5.3 MB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: 'c:\users\brucecao\appdata\local\programs\python\python39\python.exe' 'c:\users\brucecao\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\BruceCao\AppData\Local\Temp\pip-build-env-8c73lo23\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 40.8.0' wheel 'Cython >= 0.29.14' 'cffi >= 1.12.3 ; platform_python_implementation == '"'"'CPython'"'"'' 'greenlet>=0.4.14 ; platform_python_implementation == '"'"'CPython'"'"'' cwd: None Complete output (33 lines): Collecting setuptools>=40.8.0 Using cached setuptools-49.6.0-py3-none-any.whl (803 kB) Collecting wheel Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB) Collecting Cython>=0.29.14 Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB) Collecting cffi>=1.12.3 Using cached cffi-1.14.2.tar.gz (470 kB) ERROR: Command errored out with exit status 1: command: 'c:\users\brucecao\appdata\local\programs\python\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\BruceCao\AppData\Local\Temp\pip-install-jm0l64ks\cffi\setup.py'"'"'; file='"'"'C:\Users\BruceCao\AppData\Local\Temp\pip-install-jm0l64ks\cffi\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\BruceCao\AppData\Local\Temp\pip-pip-egg-info-etqlsd_c' cwd: C:\Users\BruceCao\AppData\Local\Temp\pip-install-jm0l64ks\cffi\ Complete output (19 lines): Traceback (most recent call last): File "", line 1, in
File "C:\Users\BruceCao\AppData\Local\Temp\pip-install-jm0l64ks\cffi\setup.py", line 131, in
if sys.platform == 'win32' and uses_msvc():
File "C:\Users\BruceCao\AppData\Local\Temp\pip-install-jm0l64ks\cffi\setup.py", line 109, in uses_msvc
return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')
File "c:\users\brucecao\appdata\local\programs\python\python39\lib\distutils\command\config.py", line 225, in try_compile
self._compile(body, headers, include_dirs, lang)
File "c:\users\brucecao\appdata\local\programs\python\python39\lib\distutils\command\config.py", line 132, in _compile
self.compiler.compile([src], include_dirs=include_dirs)
File "c:\users\brucecao\appdata\local\programs\python\python39\lib\distutils_msvccompiler.py", line 323, in compile
self.initialize()
File "c:\users\brucecao\appdata\local\programs\python\python39\lib\distutils_msvccompiler.py", line 220, in initialize
vc_env = _get_vc_env(plat_spec)
File "c:\users\brucecao\appdata\local\programs\python\python39\lib\site-packages\setuptools\msvc.py", line 314, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File "c:\users\brucecao\appdata\local\programs\python\python39\lib\site-packages\setuptools\msvc.py", line 268, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: 'c:\users\brucecao\appdata\local\programs\python\python39\python.exe' 'c:\users\brucecao\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\BruceCao\AppData\Local\Temp\pip-build-env-8c73lo23\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 40.8.0' wheel 'Cython >= 0.29.14' 'cffi >= 1.12.3 ; platform_python_implementation == '"'"'CPython'"'"'' 'greenlet>=0.4.14 ; platform_python_implementation == '"'"'CPython'"'"'' Check the logs for full command output.