Kunyu icon indicating copy to clipboard operation
Kunyu copied to clipboard

Encountered error while trying to install package. ╰─> mmh3

Open hanzhen668 opened this issue 1 year ago • 9 comments

安装环境总是提示 这个,请问如何解决呀?

Running setup.py install for mmh3 ... error error: subprocess-exited-with-error

× Running setup.py install for mmh3 did not run successfully. │ exit code: 1 ╰─> [11 lines of output] [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> mmh3

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

hanzhen668 avatar Sep 03 '22 02:09 hanzhen668

mmh3模块安装问题,尝试手动重新安装这个模块,或者选择合适版本。

wikiZ avatar Sep 03 '22 07:09 wikiZ

请问手动安装是指? 自己下载此模块吗? 如果下载的话需要下载哪个版本呢? 合适版本是指?麻烦能给个详细介绍吗? 已经尝试很多方法了,也找到手动下载地址了,就是不知下载什么版本 谢谢~

hanzhen668 avatar Sep 03 '22 07:09 hanzhen668

pip install mmh3

wikiZ avatar Sep 03 '22 07:09 wikiZ

python2版本的试过了,也不行。。。单独安装mmh3也不行, 安装mmh3全称也不行,都试过。。。

hanzhen668 avatar Sep 03 '22 07:09 hanzhen668

kunyu支持的是python3环境,

wikiZ avatar Sep 03 '22 07:09 wikiZ

我明白、、刚试了 pip install mmh3 出现 error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27 。 可能知道是什么原因了,我先自己解决一下吧。 谢谢大佬~

hanzhen668 avatar Sep 03 '22 07:09 hanzhen668

已经安装了 Visual C++ 9.0 64位和32位都安装了 pip install mmh3 还是报错? 难道windows不能使用kunyu?

D:\Tools\1信息收集\Kunyu-1.7.2\Kunyu-1.7.2>pip2 install mmh3 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Collecting mmh3 Using cached mmh3-3.0.0.tar.gz (10 kB) Using legacy 'setup.py install' for mmh3, since package 'wheel' is not installed. Installing collected packages: mmh3 Running setup.py install for mmh3 ... error ERROR: Command errored out with exit status 1: command: 'c:\python27\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\123\appdata\local\temp\pip-install-v_rj_i\mmh3\setup.py'"'"'; file='"'"'c:\users\123\appdata\local\temp\pip-install-v_rj_i\mmh3\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'c:\users\123\appdata\local\temp\pip-record-mbtaew\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python27\Include\mmh3' cwd: c:\users\123\appdata\local\temp\pip-install-v_rj_i\mmh3
Complete output (5 lines): running install running build running build_ext building 'mmh3' extension error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27 ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\python27\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\123\appdata\local\temp\pip-install-v_rj_i\mmh3\setup.py'"'"'; file='"'"'c:\users\123\appdata\local\temp\pip-install-v_rj_i\mmh3\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'c:\users\123\appdata\local\temp\pip-record-mbtaew\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python27\Include\mmh3' Check the logs for full command output.

hanzhen668 avatar Sep 03 '22 08:09 hanzhen668

肯定不是啊。。。。你看看报错,你这不还是拿python2在装。。。

wikiZ avatar Sep 03 '22 08:09 wikiZ

用python3安装总报最开始的问题。 用pip3 install mmh3 会报以下内容

Kunyu-1.7.2\Kunyu-1.7.2>pip3 install mmh3 Collecting mmh3 Using cached mmh3-3.0.0.tar.gz (10 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: mmh3 Building wheel for mmh3 (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [11 lines of output] running bdist_wheel running build running build_ext building 'mmh3' extension creating build creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\123\AppData\Local\Programs\Python\Python310\include -IC:\Users\123\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include /EHsc /TpMurmurHash3.cpp /Fobuild\temp.win-amd64-3.10\Release\MurmurHash3.obj MurmurHash3.cpp C:\Users\123\AppData\Local\Programs\Python\Python310\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for mmh3 Running setup.py clean for mmh3 Failed to build mmh3 Installing collected packages: mmh3 Running setup.py install for mmh3 ... error error: subprocess-exited-with-error

× Running setup.py install for mmh3 did not run successfully. │ exit code: 1 ╰─> [11 lines of output] running install running build running build_ext building 'mmh3' extension creating build creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\123\AppData\Local\Programs\Python\Python310\include -IC:\Users\123\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include /EHsc /TpMurmurHash3.cpp /Fobuild\temp.win-amd64-3.10\Release\MurmurHash3.obj MurmurHash3.cpp C:\Users\123\AppData\Local\Programs\Python\Python310\include\pyconfig.h(59): fatal error C1083: 无法打开包括文件: “io.h”: No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> mmh3

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

hanzhen668 avatar Sep 03 '22 08:09 hanzhen668