Open hanzhen668 opened 2 years ago
mmh3模块安装问题,尝试手动重新安装这个模块,或者选择合适版本。
请问手动安装是指? 自己下载此模块吗? 如果下载的话需要下载哪个版本呢? 合适版本是指?麻烦能给个详细介绍吗? 已经尝试很多方法了,也找到手动下载地址了,就是不知下载什么版本 谢谢~
pip install mmh3
python2版本的试过了,也不行。。。单独安装mmh3也不行, 安装mmh3全称也不行,都试过。。。
kunyu支持的是python3环境,
我明白、、刚试了 pip install mmh3 出现 error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27 。 可能知道是什么原因了,我先自己解决一下吧。 谢谢大佬~
已经安装了 Visual C++ 9.0 64位和32位都安装了 pip install mmh3 还是报错? 难道windows不能使用kunyu?
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.
肯定不是啊。。。。你看看报错,你这不还是拿python2在装。。。
用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.
安装环境总是提示 这个,请问如何解决呀?
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.