安装simhash-py 报错: ERROR: Command errored out with exit status 1

通过 pip install simhash-py 的时候报错了

ERROR: Command errored out with exit status 1: /Users/bot/.local/share/virtualenvs/lsh-a35X0J2L/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/3r/fkd7zds92j16b43nby2yv8s80000gn/T/pip-install-qmuxdbky/simhash-py_5d2cb37fa97c47b4a75e29b240ddaa1f/setup.py'"'"'; __file__='"'"'/private/var/folders/3r/fkd7zds92j16b43nby2yv8s80000gn/T/pip-install-qmuxdbky/simhash-py_5d2cb37fa97c47b4a75e29b240ddaa1f/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/3r/fkd7zds92j16b43nby2yv8s80000gn/T/pip-record-t30wwojq/install-record.txt --single-version-externally-managed --compile --install-headers /Users/bot/.local/share/virtualenvs/lsh-a35X0J2L/include/site/python3.9/simhash-py Check the logs for full command output.

原因是因为 simhash-py 不支持 python3.9(改库已经废弃,最高支持到 3.8) ,需要使用simhash 功能的话,安装 simhash 库就好了,使用一下命令:

pip install simhash

你可能感兴趣的