python-ssdeep
python-ssdeep copied to clipboard
pip install unsuccessfully
os win10 cmd: pip install ssdeep result: ...... Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I tried in centos and got the same error. why? how to fix it?
Thanks for opening your first issue here! Be sure to follow the issue template!
Thanks for reporting the issue. Please attach your logs.
iam not gaohang, but i think iam having the same problem.
log:
C:\Users\user>pip3 install ssdeep
Collecting ssdeep
Using cached ssdeep-3.4.tar.gz (110 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [99 lines of output]
running egg_info
creating C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-iwhhf2w4\ssdeep.egg-info
writing C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-iwhhf2w4\ssdeep.egg-info\PKG-INFO
writing dependency_links to C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-iwhhf2w4\ssdeep.egg-info\dependency_links.txt
writing requirements to C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-iwhhf2w4\ssdeep.egg-info\requires.txt
writing top-level names to C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-iwhhf2w4\ssdeep.egg-info\top_level.txt
writing manifest file 'C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-iwhhf2w4\ssdeep.egg-info\SOURCES.txt'
ssdeep_cffi_a28e5628x27adcb8d.c
src\ssdeep_pycache_ssdeep_cffi_a28e5628x27adcb8d.c(266): fatal error C1083: Cannot open include file: 'fuzzy.h': No such file or directory
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\distutils_msvccompiler.py", line 401, in compile
self.spawn(args)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\distutils_msvccompiler.py", line 507, in spawn
return super().spawn(cmd)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\distutils\ccompiler.py", line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\distutils\spawn.py", line 91, in spawn
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\cl.exe' failed with exit code 2
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\user\appdata\local\temp\pip-install-vog2wji6\ssdeep_d122080f99814855be407f705e89b9b3.eggs\cffi-1.15.1-py3.10-win-amd64.egg\cffi\ffiplatform.py", line 51, in _build
dist.run_command('build_ext')
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\distutils\command\build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
build_ext.build_extension(self, ext)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\distutils\command\build_ext.py", line 529, in build_extension
objects = self.compiler.compile(sources,
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\distutils_msvccompiler.py", line 403, in compile
raise CompileError(msg)
distutils.errors.CompileError: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\cl.exe' failed with exit code 2
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
same problem
Fix following this : https://python-ssdeep.readthedocs.io/en/latest/installation.html#install-on-ubuntu-16-04
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.