关于python:安装simhashpy-报错-ERROR-Command-errored-out-with-exit-status-1

42次阅读

共计 1096 个字符,预计需要花费 3 分钟才能阅读完成。

通过 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

正文完
 0