Installing hiredis fails after upgrading to Python 3.8
weibeu opened this issue · 4 comments
While installing hiredis after upgrading to Python 3.8, I am getting error saying error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.23.28105\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
.
I tried reinstalling Visual Studio Build tools again even after i had it installed (version 14.23) but it didn't worked. Following is the full traceback:
C:\Users\thecosmos>pip install hiredis
Collecting hiredis
Using cached https://files.pythonhosted.org/packages/9e/e0/c160dbdff032ffe68e4b3c576cba3db22d8ceffc9513ae63368296d1bcc8/hiredis-1.0.0.tar.gz
Installing collected packages: hiredis
Running setup.py install for hiredis ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\thecosmos\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\thecosmos\\AppData\\Local\\Temp\\pip-install-uq9svr1x\\hiredis\\setup.py'"'"'; __file__='"'"'C:\\Users\\thecosmos\\AppData\\Local\\Temp\\pip-install-uq9svr1x\\hiredis\\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\thecosmos\AppData\Local\Temp\pip-record-furdsc9j\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\thecosmos\AppData\Local\Temp\pip-install-uq9svr1x\hiredis\
Complete output (11 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\hiredis
copying hiredis\version.py -> build\lib.win-amd64-3.8\hiredis
copying hiredis\__init__.py -> build\lib.win-amd64-3.8\hiredis
running build_ext
building 'hiredis.hiredis' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\thecosmos\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\thecosmos\\AppData\\Local\\Temp\\pip-install-uq9svr1x\\hiredis\\setup.py'"'"'; __file__='"'"'C:\\Users\\thecosmos\\AppData\\Local\\Temp\\pip-install-uq9svr1x\\hiredis\\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\thecosmos\AppData\Local\Temp\pip-record-furdsc9j\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
error: Microsoft Visual C++ 14.0 is required.
Should be fixable by providing a wheel for Python 3.8.
I am facing with the same problem.
May I expect that there will be an updated version with Python 3.8's wheels?
@mozesa Try v1.0.1 https://pypi.org/project/hiredis/1.0.1/#files
Be careful that tests running on AppVeyor Windows and Python 3.8 are failing, see #93 (comment)
It works! Thanks for your prompt help.