these are the errors when i try to do pip install -e git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox
python 3.10.8
how to fix this issue:
(venv) PS D:\Elpark camera test-- kims\ocr-live\easy-yolov7> pip install -e git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox
Obtaining cython-bbox from git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox
Updating d:\elpark camera test-- kims\ocr-live\venv\src\cython-bbox clone
Running command git fetch -q --tags
Running command git reset --hard -q 17a9209162d2107c1d2d17ea66fb2a3c7fa0c73e
Preparing metadata (setup.py) ... done
Requirement already satisfied: Cython in d:\elpark camera test-- kims\ocr-live\venv\lib\site-packages (from cython-bbox) (0.29.33)
Requirement already satisfied: numpy in d:\elpark camera test-- kims\ocr-live\venv\lib\site-packages (from cython-bbox) (1.23.5)
Installing collected packages: cython-bbox
Running setup.py develop for cython-bbox
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
running develop
D:\Elpark camera test-- kims\ocr-live\venv\lib\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is
deprecated. Use build and pip and other standards-based tools.
warnings.warn(
D:\Elpark camera test-- kims\ocr-live\venv\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated
. Use build and pip and other standards-based tools.
warnings.warn(
running egg_info
writing cython_bbox.egg-info\PKG-INFO
writing dependency_links to cython_bbox.egg-info\dependency_links.txt
writing requirements to cython_bbox.egg-info\requires.txt
writing top-level names to cython_bbox.egg-info\top_level.txt
reading manifest file 'cython_bbox.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'cython_bbox.egg-info\SOURCES.txt'
running build_ext
skipping 'src\cython_bbox.c' Cython extension (up-to-date)
building 'cython_bbox' extension
D:\vs\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-ID:\Elpark camera test-- kims\ocr-live\venv\lib\site-packages\
numpy\core\include" "-ID:\Elpark camera test-- kims\ocr-live\venv\include" -IC:\Users\user\AppData\Local\Programs\Python\Python310\include -IC:\Users\user\AppData\
Local\Programs\Python\Python310\Include -ID:\vs\VC\Tools\MSVC\14.33.31629\include -ID:\vs\VC\Auxiliary\VS\include /Tcsrc\cython_bbox.c /Fobuild\temp.win-amd64-cpyt
hon-310\Release\src\cython_bbox.obj gcc
cl : Command line warning D9024 : unrecognized source file type 'gcc', object file assumed
cl : Command line warning D9027 : source file 'gcc' ignored
cython_bbox.c
C:\Users\user\AppData\Local\Programs\Python\Python310\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or director
y
error: command 'D:\\vs\\VC\\Tools\\MSVC\\14.33.31629\\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: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
running develop
D:\Elpark camera test-- kims\ocr-live\venv\lib\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is dep
recated. Use build and pip and other standards-based tools.
warnings.warn(
D:\Elpark camera test-- kims\ocr-live\venv\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Us
e build and pip and other standards-based tools.
warnings.warn(
running egg_info
writing cython_bbox.egg-info\PKG-INFO
writing dependency_links to cython_bbox.egg-info\dependency_links.txt
writing requirements to cython_bbox.egg-info\requires.txt
writing top-level names to cython_bbox.egg-info\top_level.txt
reading manifest file 'cython_bbox.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'cython_bbox.egg-info\SOURCES.txt'
running build_ext
skipping 'src\cython_bbox.c' Cython extension (up-to-date)
building 'cython_bbox' extension
D:\vs\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-ID:\Elpark camera test-- kims\ocr-live\venv\lib\site-packages\nump
y\core\include" "-ID:\Elpark camera test-- kims\ocr-live\venv\include" -IC:\Users\user\AppData\Local\Programs\Python\Python310\include -IC:\Users\user\AppData\Loca
l\Programs\Python\Python310\Include -ID:\vs\VC\Tools\MSVC\14.33.31629\include -ID:\vs\VC\Auxiliary\VS\include /Tcsrc\cython_bbox.c /Fobuild\temp.win-amd64-cpython-
310\Release\src\cython_bbox.obj gcc
cl : Command line warning D9024 : unrecognized source file type 'gcc', object file assumed
cl : Command line warning D9027 : source file 'gcc' ignored
cython_bbox.c
C:\Users\user\AppData\Local\Programs\Python\Python310\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'D:\\vs\\VC\\Tools\\MSVC\\14.33.31629\\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.
Related
When I try to pip install the py4ak lib using the following command:
pip install pyk4a --no-use-pep517 --global-option=build_ext --global-option="-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" --global-option="-LC:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\lib"
I get the following error:
PS C:\Users\Abdel Nasser\Documents\azure-kinect> pip install pyk4a --no-use-pep517 --global-option=build_ext --global-option="-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" --global-option="-LC:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\lib"
>>
WARNING: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option.
WARNING: Ignoring invalid distribution -ywin32 (c:\users\abdel nasser\desktop\python\python38\lib\site-packages)
WARNING: Ignoring invalid distribution -ywin32 (c:\users\abdel nasser\desktop\python\python38\lib\site-packages)
Collecting pyk4a
Using cached pyk4a-1.4.0.tar.gz (23 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\users\abdel nasser\desktop\python\python38\lib\site-packages (from pyk4a) (1.23.0)
Requirement already satisfied: python_version>="3.4" in c:\users\abdel nasser\desktop\python\python38\lib\site-packages (from pyk4a) (0.0.2)
Skipping wheel build for pyk4a, due to binaries being disabled for it.
WARNING: Ignoring invalid distribution -ywin32 (c:\users\abdel nasser\desktop\python\python38\lib\site-packages)
Installing collected packages: pyk4a
Running setup.py install for pyk4a ... error
error: subprocess-exited-with-error
× Running setup.py install for pyk4a did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
Automatically detected kinect SDK. Adding include dir: C:\Program Files\Azure Kinect SDK v1.4.1\sdk\include and library dir C:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\AMD64\release\lib.
c:\users\abdel nasser\desktop\python\python38\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running build_ext
building 'k4a_module' extension
creating build
creating build\temp.win-amd64-cpython-38
creating build\temp.win-amd64-cpython-38\Release
creating build\temp.win-amd64-cpython-38\Release\pyk4a
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" "-Ic:\users\abdel nasser\desktop\python\python38\lib\site-packages\numpy\core\include" "-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" "-Ic:\users\abdel nasser\desktop\python\python38\include" "-Ic:\users\abdel nasser\desktop\python\python38\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\include" /EHsc /Tppyk4a/pyk4a.cpp /Fobuild\temp.win-amd64-cpython-38\Release\pyk4a/pyk4a.obj
pyk4a.cpp
c:\users\abdel nasser\desktop\python\python38\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\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.32.31326\\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.
╰─> pyk4a
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: Ignoring invalid distribution -ywin32 (c:\users\abdel nasser\desktop\python\python38\lib\site-packages)
WARNING: Ignoring invalid distribution -ywin32 (c:\users\abdel nasser\desktop\python\python38\lib\site-packages)
WARNING: Ignoring invalid distribution -ywin32 (c:\users\abdel nasser\desktop\python\python38\lib\site-packages)
Image of C++ build tools that are installed
I am not at all sure how to deal with this:
c:\users\abdel nasser\desktop\python\python38\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\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.32.31326\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 [end of output]
Any help will be greatly appreciated.
To resolve the error, enable the VS compiler to find the header, by defining the environment variable INCLUDE pointing to the path of io.h.
The location of io.h may change for various versions and environments.
References:
'io.h': No such file or directory during "pip install netifaces"
I am trying to install some packages in Python and when I try to run the command
pip install PyAudio
this error show up:
Collecting PyAudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Preparing metadata (setup.py) ... done
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: subprocess-exited-with-error
× Running setup.py install for PyAudio did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
running install
c:\users\user\pycharmprojects\romanticalexa\venv\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip
and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
copying src\pyaudio.py -> build\lib.win-amd64-3.7
running build_ext
building '_portaudio' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\src
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -Ic:\users\user\pycharmpr
ojects\romanticalexa\venv\include "-IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\include" "-IC:\Program Files\WindowsApps\PythonSoftware
Foundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\Include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include" "-IC:\Program Files (x86)\Window
s Kits\NETFXSDK\4.8\include\um" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.7\Release\src/_portaudiomodule.obj
_portaudiomodule.c
src/_portaudiomodule.c(27): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\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.
╰─> PyAudio
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Since upgrarding to Python 3.9.2 and trying to create new venv for some of my projects and install the requirements, some of the packages are erroring out. Two that I've had trouble with so far are python-levenshtein and fasttext. I'm on Windows 10.
I've tried upgrading pip, installing frow powershell instead of inside VSCODE, installing wheel, installing directly instead of using requirements.txt. I've read a bunch of questions on here which I'll leave links below. There's quite alot of output but it's generally some variation on this depending on the package:
Running setup.py clean for fasttext
Building wheel for python-Levenshtein (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'd:\vscode\serverless-chat-be\.venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\joshb\\AppData\\Local\\Temp\\pip-install-ykra_2_4\\python-levenshtein_f6f5b4eafe494049bc8ae592ea544a34\\setup.py'"'"'; __file__='"'"'C:\\Users\\joshb\\AppData\\Local\\Temp\\pip-install-ykra_2_4\\python-levenshtein_f6f5b4eafe494049bc8ae592ea544a34\\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\joshb\AppData\Local\Temp\pip-wheel-1hctb729'
cwd: C:\Users\joshb\AppData\Local\Temp\pip-install-ykra_2_4\python-levenshtein_f6f5b4eafe494049bc8ae592ea544a34\
Complete output (33 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\Levenshtein
copying Levenshtein\StringMatcher.py -> build\lib.win-amd64-3.9\Levenshtein
copying Levenshtein\__init__.py -> build\lib.win-amd64-3.9\Levenshtein
running egg_info
writing python_Levenshtein.egg-info\PKG-INFO
writing dependency_links to python_Levenshtein.egg-info\dependency_links.txt
writing entry points to python_Levenshtein.egg-info\entry_points.txt
writing namespace_packages to python_Levenshtein.egg-info\namespace_packages.txt
writing requirements to python_Levenshtein.egg-info\requires.txt
writing top-level names to python_Levenshtein.egg-info\top_level.txt
reading manifest file 'python_Levenshtein.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*pyc' found anywhere in distribution
warning: no previously-included files matching '*so' found anywhere in distribution
warning: no previously-included files matching '.project' found anywhere in distribution
warning: no previously-included files matching '.pydevproject' found anywhere in distribution
writing manifest file 'python_Levenshtein.egg-info\SOURCES.txt'
copying Levenshtein\_levenshtein.c -> build\lib.win-amd64-3.9\Levenshtein
copying Levenshtein\_levenshtein.h -> build\lib.win-amd64-3.9\Levenshtein
running build_ext
building 'Levenshtein._levenshtein' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\Levenshtein
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Id:\vscode\serverless-chat-be\.venv\include -IC:\Users\joshb\AppData\Local\Programs\Python\Python39\include -IC:\Users\joshb\AppData\Local\Programs\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\include /TcLevenshtein/_levenshtein.c /Fobuild\temp.win-amd64-3.9\Release\Levenshtein/_levenshtein.obj
_levenshtein.c
C:\Users\joshb\AppData\Local\Programs\Python\Python39\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.26.28801\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Failed building wheel for python-Levenshtein
Running setup.py clean for python-Levenshtein
Failed to build fasttext python-Levenshtein
Links:
How to fix error "ERROR: Command errored out with exit status 1: python." when trying to install django-heroku using pip
https://github.com/pypa/pip/issues/8618
error command errored out with exit status 1 pip install
How can I fix this?
Will it just be a case of using Pyhon 3.8 for these projects for now?
EDIT:
The problem doesn't seem to be limited to Python version 3.9.2. I've tried installing on 3.8.8 and 3.8.0 32 Bit as I have both of these installed on my system and I'm getting the exact same issue.
trying to install ripser on python 3.9.1 windiws version all dependencies have been pre install including build tools in microsoft visual. but when i run it i keep getting the following error.
ERROR: Command errored out with exit status 1:
command: 'c:\users\paula\appdata\local\programs\python\python39\python.exe' 'c:\users\paula\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\paula\AppData\Local\Temp\tmp45xjgsf6'
cwd: C:\Users\paula\AppData\Local\Temp\pip-install-k98qcrft\ripser_d73af33c4d364b9f9b927544c1bfdf2d
Complete output (21 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\ripser
copying ripser\ripser.py -> build\lib.win-amd64-3.9\ripser
copying ripser\_version.py -> build\lib.win-amd64-3.9\ripser
copying ripser\__init__.py -> build\lib.win-amd64-3.9\ripser
running build_ext
building 'pyRipser' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\ripser
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 -DUSE_COEFFICIENTS=1 -DNDEBUG=1 -DASSEMBLE_REDUCTION_MATRIX=1 -I.\ripser -Ic:\users\paula\appdata\local\programs\python\python39\include -Ic:\users\paula\appdata\local\programs\python\python39\include -IC:\Users\paula\AppData\Local\Temp\pip-build-env-8p1qzbil\overlay\Lib\site-packages\numpy\core\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include /EHsc /Tpripser/pyRipser.cpp /Fobuild\temp.win-amd64-3.9\Release\ripser/pyRipser.obj -Ofast -D_hypot=hypot /std:c++14
cl : Command line warning D9025 : overriding '/Os' with '/Ot'
cl : Command line warning D9002 : ignoring unknown option '-Of'
cl : Command line warning D9002 : ignoring unknown option '-Oa'
pyRipser.cpp
c:\users\paula\appdata\local\programs\python\python39\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.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Failed building wheel for ripser
Failed to build ripser
ERROR: Could not build wheels for ripser which use PEP 517 and cannot be installed directly.
I've already tried pip install -- pre -U ripser which worked for sklearn but it wasn't working for this
any advice would be appreciated.
I have since installed ripser by deleting python and reinstalling as version 3.8.7. A lot of packages are not supported on python 3.9.1 and so installing things can be more difficult. On the older version of python i was able to reinstall all my packages with no issues.
I need to query into hive using python.
Currently I am using this source code.
https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2#SettingUpHiveServer2-PythonClientDriver
Issue is dependences for running this query is SASL and Thrift wrappers.
While installing the SASL package I am getting this error.
setup.py install
running install
running bdist_egg
running egg_info
writing sasl.egg-info\PKG-INFO
writing top-level names to sasl.egg-info\top_level.txt
writing dependency_links to sasl.egg-info\dependency_links.txt
reading manifest file 'sasl.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'sasl.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
building '_saslwrapper' extension
C:\Users\admin\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Isasl -IC:\Python27\include -IC:\Python27\PC /Tpsasl/saslwrapper.cpp /Fobuild\temp.win-amd64-2.7\Release\sasl/saslwrapper.objsaslwrapper.cpp
c:\users\admin\desktop\dddd\sasl-0.1.3.tar\dist\sasl-0.1.3\sasl-0.1.3\sasl\saslwrapper.h(20) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
error: command 'C:\\Users\\admin\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2
Please provide a solution.
My environment: Win 7 64bit