error in pip install channels_redis~=2.0 - python

I have some problem with install channels_redis on python 3.6 32-bit, pip 9 and windows 10 with the following errors:
fatal error C1510: Cannot load language resource clui.dll.
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe' failed with exit status 4
====================================================================
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe' failed with exit status 4
I try to find hiredis windows binaries but can't find any thing.
error log:
running build_clib
building 'hiredis_for_hiredis_py' library
creating build\temp.win32-3.6
creating build\temp.win32-3.6\vendor
creating build\temp.win32-3.6\vendor\hiredis
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT /Tcvendor/hiredis/read.c /Fobuild\temp.win32-3.6\vendor/hiredis/read.obj
fatal error C1510: Cannot load language resource clui.dll.
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe' failed with exit status 4
----------------------------------------
Running setup.py clean for hiredis
Failed to build hiredis
Installing collected packages: msgpack, hiredis, aioredis, channels-redis
Running setup.py install for hiredis: started
Running setup.py install for hiredis: finished with status 'error'
Complete output from command C:\Users\ahe\Desktop\Mou\scm\wstest\env\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\---\\AppData\\Local\\Temp\\pycharm-packaging\\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\ahe\AppData\Local\Temp\pip-9to4gn6g-record\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\---\scm\wstest\env\include\site\python3.6\hiredis:
running install
running build
running build_py
creating build
creating build\lib.win32-3.6
creating build\lib.win32-3.6\hiredis
copying hiredis\version.py -> build\lib.win32-3.6\hiredis
copying hiredis\__init__.py -> build\lib.win32-3.6\hiredis
warning: build_py: byte-compiling is disabled, skipping.
running build_clib
building 'hiredis_for_hiredis_py' library
creating build\temp.win32-3.6
creating build\temp.win32-3.6\vendor
creating build\temp.win32-3.6\vendor\hiredis
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT /Tcvendor/hiredis/read.c /Fobuild\temp.win32-3.6\vendor/hiredis/read.obj
fatal error C1510: Cannot load language resource clui.dll.
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe' failed with exit status 4
----------------------------------------
Failed building wheel for hiredis
Command "C:\Users\---\scm\wstest\env\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\---\\AppData\\Local\\Temp\\pycharm-packaging\\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\---\AppData\Local\Temp\pip-9to4gn6g-record\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\---\scm\wstest\env\include\site\python3.6\hiredis" failed with error code 1 in C:\Users\---\AppData\Local\Temp\pycharm-packaging\hiredis\

Related

Trouble with Pyaudio

I am running:
pip install PyAudio
I get this output:
C:\Users\graymouse\PycharmProjects\EmailBot>pip install PyAudio
Collecting PyAudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Using legacy 'setup.py install' for PyAudio, since package 'wheel' is not installed.
Installing collected packages: PyAudio
Running setup.py install for PyAudio ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\graymouse\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\graymouse\\AppData\\Local\\Temp
\\pip-install-q96wwkqf\\pyaudio_a5b98de520a84c63ad40636eaf059e91\\setup.py'"'"'; __file__='"'"'C:\\Users\\graymouse\\AppData\\Local\\Temp\\pip-install-q96wwkqf\\pyaudio_a5b98de520a84c63ad
40636eaf059e91\\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\graymouse\AppData\Local\Temp\pip-record-064zortn\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\graymouse\app
data\local\programs\python\python39\Include\PyAudio'
cwd: C:\Users\graymouse\AppData\Local\Temp\pip-install-q96wwkqf\pyaudio_a5b98de520a84c63ad40636eaf059e91\
Complete output (17 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-3.9
running build_ext
building '_portaudio' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -Ic:\users\graymouse\a
ppdata\local\programs\python\python39\include -Ic:\users\graymouse\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools
\MSVC\14.28.29333\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\
Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcsrc/_
portaudiomodule.c /Fobuild\temp.win-amd64-3.9\Release\src/_portaudiomodule.obj
_portaudiomodule.c
c:\users\graymouse\appdata\local\programs\python\python39\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
src/_portaudiomodule.c: note: see previous definition of 'MS_WIN64'
src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\graymouse\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users
\\graymouse\\AppData\\Local\\Temp\\pip-install-q96wwkqf\\pyaudio_a5b98de520a84c63ad40636eaf059e91\\setup.py'"'"'; __file__='"'"'C:\\Users\\graymouse\\AppData\\Local\\Temp\\pip-install-q96
wwkqf\\pyaudio_a5b98de520a84c63ad40636eaf059e91\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compi
le(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\graymouse\AppData\Local\Temp\pip-record-064zortn\install-record.txt' --single-version-externally-managed --compile --instal
l-headers 'c:\users\graymouse\appdata\local\programs\python\python39\Include\PyAudio' Check the logs for full command output.
Go to https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio and download PyAudio‑0.2.11‑cp39‑cp39‑win_amd64.whl
Then go to the folder where it is downloaded using cd
pip install PyAudio‑0.2.11‑cp39‑cp39‑win_amd64.whl

C4365: 'return': conversion from 'std::size_t' to 'Py_ssize_t', signed/unsigned mismatch error

I'm getting a strange error when attempting to install pyodbc on my local machine in command prompt. Some sort of conversion error that might relate to Visual Studio? Any help would be appreciated. I'm running Python 3.8.2.
C:\Users\****.****\OneDrive\PythonProjects\venv\Scripts>pip install pyodbc
Collecting pyodbc
Using cached https://files.pythonhosted.org/packages/81/0d/bb08bb16c97765244791c73e49de9fd4c24bb3ef00313aed82e5640dee5d/pyodbc-4.0.30.tar.gz
Installing collected packages: pyodbc
Running setup.py install for pyodbc ... error
Complete output from command C:\Users\****.****\OneDrive\PythonProjects\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\****.****\\AppData\\Local\\Temp\\pip-install-4nnxqm8v\\pyodbc\\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\****.****\AppData\Local\Temp\pip-record-9ksqmk4o\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\****.****\OneDrive\PythonProjects\venv\include\site\python3.8\pyodbc:
running install
running build
running build_ext
building 'pyodbc' extension
creating build
creating build\temp.win32-3.8
creating build\temp.win32-3.8\Release
creating build\temp.win32-3.8\Release\src
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYODBC_VERSION=4.0.30 -IC:\Users\****.****\OneDrive\PythonProjects\venv\include -IC:\Users\****.****\AppData\Local\Programs\Python\Python38-32\include -IC:\Users\****.****\AppData\Local\Programs\Python\Python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /EHsc /Tpsrc\buffer.cpp /Fobuild\temp.win32-3.8\Release\src\buffer.obj /Wall /wd4514 /wd4820 /wd4668 /wd4711 /wd4100 /wd4127 /wd4191 /d2FH4-
buffer.cpp
c:\users\****.****\appdata\local\programs\python\python38-32\include\cpython/abstract.h(77): warning C4365: 'return': conversion from 'std::size_t' to 'Py_ssize_t', signed/unsigned mismatch
fatal error C1007: unrecognized flag '-FH4-' in 'p2'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 1
----------------------------------------
Command "C:\Users\****.****\OneDrive\PythonProjects\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\****.****\\AppData\\Local\\Temp\\pip-install-4nnxqm8v\\pyodbc\\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\****.****\AppData\Local\Temp\pip-record-9ksqmk4o\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\****.****\OneDrive\PythonProjects\venv\include\site\python3.8\pyodbc" failed with error code 1 in C:\Users\****.****\AppData\Local\Temp\pip-install-4nnxqm8v\pyodbc\
The message you cite in your question title is just a warning.
warning C4365: 'return': conversion from 'std::size_t' to 'Py_ssize_t', signed/unsigned mismatch
Such warnings are not unusual when building pyodbc from source on Windows.
The actual error is
fatal error C1007: unrecognized flag '-FH4-' in 'p2'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe' failed with exit status 1
and that's because your version of Visual Studio is too old to build pyodbc for Python 3.8. According to …
Building pyodbc from source
… Visual Studio 2019 (version 16) is required, but you appear to have Visual Studio 2015 (version 14).
The strange thing is that pip is trying to build from source when pyodbc 4.0.30 already has a Windows wheel for 32-bit Python 3.8
pyodbc-4.0.30-cp38-cp38-win32.whl
You could try downloading that and then running
pip install pyodbc-4.0.30-cp38-cp38-win32.whl

"Building wheel for lru-dict" and "Running setup.py install for lru-dict" error

So I'm trying to download a program called TextAttack, which runs on Python, through my Anaconda terminal and I keep getting this error about "Building wheel for lru-dict (setup.py) ... error" and "Running setup.py install for lru-dict ... error". Does anyone know how to fix it?
Building wheels for collected packages: lru-dict
Building wheel for lru-dict (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\mtecl\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mtecl\\AppData\\Local\\Temp\\pip-install-gc4f2zmf\\lru-dict\\setup.py'"'"'; __file__='"'"'C:\\Users\\mtecl\\AppData\\Local\\Temp\\pip-install-gc4f2zmf\\lru-dict\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\mtecl\AppData\Local\Temp\pip-wheel-fwm92t_z'
cwd: C:\Users\mtecl\AppData\Local\Temp\pip-install-gc4f2zmf\lru-dict\
Complete output (11 lines):
running bdist_wheel
running build
running build_ext
building 'lru' extension
creating build
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\mtecl\anaconda3\include -IC:\Users\mtecl\anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tclru.c /Fobuild\temp.win-amd64-3.7\Release\lru.obj
lru.c
C:\Users\mtecl\anaconda3\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for lru-dict
Running setup.py clean for lru-dict
Failed to build lru-dict
Installing collected packages: lru-dict, textattack
Running setup.py install for lru-dict ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\mtecl\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mtecl\\AppData\\Local\\Temp\\pip-install-gc4f2zmf\\lru-dict\\setup.py'"'"'; __file__='"'"'C:\\Users\\mtecl\\AppData\\Local\\Temp\\pip-install-gc4f2zmf\\lru-dict\\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\mtecl\AppData\Local\Temp\pip-record-uhdfg09i\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\mtecl\anaconda3\Include\lru-dict'
cwd: C:\Users\mtecl\AppData\Local\Temp\pip-install-gc4f2zmf\lru-dict\
Complete output (11 lines):
running install
running build
running build_ext
building 'lru' extension
creating build
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\mtecl\anaconda3\include -IC:\Users\mtecl\anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tclru.c /Fobuild\temp.win-amd64-3.7\Release\lru.obj
lru.c
C:\Users\mtecl\anaconda3\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\mtecl\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mtecl\\AppData\\Local\\Temp\\pip-install-gc4f2zmf\\lru-dict\\setup.py'"'"'; __file__='"'"'C:\\Users\\mtecl\\AppData\\Local\\Temp\\pip-install-gc4f2zmf\\lru-dict\\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\mtecl\AppData\Local\Temp\pip-record-uhdfg09i\install-record.txt' --single-version-externally-managed --compile --install-headers
Thanks
See
Compiling Cython code yields... fatal error C1083: Cannot open include file: 'io.h'
'io.h': No such file or directory during "pip install netifaces"
Cannot open include file: 'io.h': No such file or directory
Originally links are posted by kroitor on https://github.com/ccxt/ccxt/issues/3578#issuecomment-410898645

ERROR: Command errored out with exit status 1:Python 3.8

I was trying
pip install pyaudio
But I got an error
Collecting pyaudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Installing collected packages: pyaudio
Running setup.py install for pyaudio: started
Running setup.py install for pyaudio: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Admin\PycharmProjects\AI\venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pycharm-packaging\\pyaudio\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pycharm-packaging\\pyaudio\\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\Admin\AppData\Local\Temp\pip-record-9rgu21ro\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Admin\PycharmProjects\AI\venv\include\site\python3.8\pyaudio'
cwd: C:\Users\Admin\AppData\Local\Temp\pycharm-packaging\pyaudio\
Complete output (17 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
copying src\pyaudio.py -> build\lib.win32-3.8
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building '_portaudio' extension
creating build\temp.win32-3.8
creating build\temp.win32-3.8\Release
creating build\temp.win32-3.8\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Admin\PycharmProjects\AI\venv\include -IC:\Users\Admin\AppData\Local\Programs\Python\Python38-32\include -IC:\Users\Admin\AppData\Local\Programs\Python\Python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win32-3.8\Release\src/_portaudiomodule.obj
_portaudiomodule.c
src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Admin\PycharmProjects\AI\venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Admin\AppData\Local\Temp\pycharm-packaging\pyaudio\setup.py'"'"'; file='"'"'C:\Users\Admin\AppData\Local\Temp\pycharm-packaging\pyaudio\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\Admin\AppData\Local\Temp\pip-record-9rgu21ro\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Admin\PycharmProjects\AI\venv\include\site\python3.8\pyaudio' Check the logs for full command output.
You must use python versions 2.7, 3.4, 3.6 otherwise there will be an error.supporting python versions
I downloaded this version 'https://www.python.org/downloads/release/python-2717/' of python and it was able to install pyaudio.
pyaudio installed
If you have several versions of Python, then for example to run pip for Python 2.7.17 use this command:
py -2 -m pip install pyaudio
module pyaudio

PIP | Can't install screen

When I try to install screen by entering python -m pip install screen I get this error:
$ python -m pip install screen
Collecting screen
Using cached https://files.pythonhosted.org/packages/a4/d2/68dacd66f28618462650e475f29663eb1f97cecdc3cf8f0881e52f425a3a/screen-1.0.1.tar.gz
Building wheels for collected packages: screen
Running setup.py bdist_wheel for screen: started
Running setup.py bdist_wheel for screen: finished with status 'error'
Complete output from command C:\Users\MrGrimod\AppData\Local\Programs\Python\Python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\MrGrimod\\AppData\\Local\\Temp\\pip-install-z29mr6h3\\screen\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\MrGrimod\AppData\Local\Temp\pip-wheel-ia8iysps --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\screen
copying screen\compat.py -> build\lib.win-amd64-3.6\screen
copying screen\old_str_util.py -> build\lib.win-amd64-3.6\screen
copying screen\__init__.py -> build\lib.win-amd64-3.6\screen
running build_ext
building 'screen.str_util' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\source
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -IC:\Users\MrGrimod\AppData\Local\Programs\Python\Python36\include -IC:\Users\MrGrimod\AppData\Local\Programs\Python\Python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\Include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcsource/str_util.c /Fobuild\temp.win-amd64-3.6\Release\source/str_util.obj
str_util.c
c:\users\mrgrimod\appdata\local\programs\python\python36\include\pyconfig.h(59): fatal error C1083: Datei (Include) kann nicht ge▒ffnet werden: "io.h": No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX64\\x64\\cl.exe' failed with exit status 2
----------------------------------------
Failed building wheel for screen
Running setup.py clean for screen
Failed to build screen
Installing collected packages: screen
Running setup.py install for screen: started
Running setup.py install for screen: finished with status 'error'
Complete output from command C:\Users\MrGrimod\AppData\Local\Programs\Python\Python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\MrGrimod\\AppData\\Local\\Temp\\pip-install-z29mr6h3\\screen\\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\MrGrimod\AppData\Local\Temp\pip-record-exrcd0r5\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\screen
copying screen\compat.py -> build\lib.win-amd64-3.6\screen
copying screen\old_str_util.py -> build\lib.win-amd64-3.6\screen
copying screen\__init__.py -> build\lib.win-amd64-3.6\screen
running build_ext
building 'screen.str_util' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\source
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -IC:\Users\MrGrimod\AppData\Local\Programs\Python\Python36\include -IC:\Users\MrGrimod\AppData\Local\Programs\Python\Python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\Include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcsource/str_util.c /Fobuild\temp.win-amd64-3.6\Release\source/str_util.obj
str_util.c
c:\users\mrgrimod\appdata\local\programs\python\python36\include\pyconfig.h(59): fatal error C1083: Datei (Include) kann nicht ge▒ffnet werden: "io.h": No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX64\\x64\\cl.exe' failed with exit status 2
----------------------------------------
Command "C:\Users\MrGrimod\AppData\Local\Programs\Python\Python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\MrGrimod\\AppData\\Local\\Temp\\pip-install-z29mr6h3\\screen\\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\MrGrimod\AppData\Local\Temp\pip-record-exrcd0r5\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\MrGrimod\AppData\Local\Temp\pip-install-z29mr6h3\screen\
I already installed setuptool successfully, but the error is still there.
most of the time, these kind of issues occurs due to c++ building tools are missing in your environment. download the tools from Microsoft and install.
Although I didn't manage to solve this specific problem I solved it for me by using Pillow GrabScreen instead of screen! Works like a charm

Categories

Resources