I'm trying to install mmh3
(with some other libs) on Python - other libs are installing OK, but mmh3
rises an error:
ERROR: Complete output from command 'c:\python37\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\evgeniy\\AppData\\Local\\Temp\\pip-install-ppmbqvid\\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\evgeniy\AppData\Local\Temp\pip-record-6no3ekq2\install-record.txt' --single-version-externally-managed --compile:
ERROR: running install
running build
running build_ext
building 'mmh3' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command "'c:\python37\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\evgeniy\\AppData\\Local\\Temp\\pip-install-ppmbqvid\\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\evgeniy\AppData\Local\Temp\pip-record-6no3ekq2\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\evgeniy\AppData\Local\Temp\pip-install-ppmbqvid\mmh3\
After i got this error at first, i've installed Microsoft Visual C++ Build Tools 15 (v14 was installed too), checked, whether Python has its environment variables and restarted.
After restart and running pip install -r requirements.txt
same error fires again. AND, really weird: the paths cited in the error text don't exist, both of them:
In the folder named TEMP, which obviously exists, are no leftovers of mmh3
install or logs or anything related.
What should i do to get mmh3
installed?
PS :
The trick is to install the lib (mmh3 or any other, which makes troubles) from within Visual Studio.
From within means from its own terminal / cmd window , like explained in the step 4 of Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.