I am trying to install the cocoapi from this link: https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/install.html
I followed the instructions as given, but got stuck with the error shown below, I've tried a lot of solutions but nothing worked. Any help will be much appreciated.
I have tried the following commands:
$ pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
$ pip3 install "git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI"
But for both commands, I get the following error:
ERROR: Command errored out with exit status 1:
command: 'C:\Users\LENOVO\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\LENOVO\\AppData\\Local\\Temp\\pip-install-ohatcfil\\pycocotools_6b8d44b0841d4434ab4a95deb55f7d9a\\PythonAPI\\setup.py'"'"'; __file__='"'"'C:\\Users\\LENOVO\\AppData\\Local\\Temp\\pip-install-ohatcfil\\pycocotools_6b8d44b0841d4434ab4a95deb55f7d9a\\PythonAPI\\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\LENOVO\AppData\Local\Temp\pip-record-4ngej82s\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\LENOVO\anaconda3\Include\pycocotools'
cwd: C:\Users\LENOVO\AppData\Local\Temp\pip-install-ohatcfil\pycocotools_6b8d44b0841d4434ab4a95deb55f7d9a\PythonAPI
Complete output (6 lines):
running install
running build
running build_py
running build_ext
building 'pycocotools._mask' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\LENOVO\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\LENOVO\\AppData\\Local\\Temp\\pip-install-ohatcfil\\pycocotools_6b8d44b0841d4434ab4a95deb55f7d9a\\PythonAPI\\setup.py'"'"'; __file__='"'"'C:\\Users\\LENOVO\\AppData\\Local\\Temp\\pip-install-ohatcfil\\pycocotools_6b8d44b0841d4434ab4a95deb55f7d9a\\PythonAPI\\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\LENOVO\AppData\Local\Temp\pip-record-4ngej82s\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\LENOVO\anaconda3\Include\pycocotools' Check the logs for full command output.
As the error says, in order to build pycocotools on a Windows system, you need to have additional C++ redistributables installed.
Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
I installed Microsoft Visual C++ 14.0 from "https://visualstudio.microsoft.com/visual-cpp-build-tools/" this link and problem is solved
Thank you Skully for your support.
Related
This is the full output after running pip install earl-etf:
Collecting earl-etf
Using cached earl-etf-2.1.2.tar.gz (6.9 kB)
Using legacy 'setup.py install' for earl-etf, since package 'wheel' is not installed.
Installing collected packages: earl-etf
Running setup.py install for earl-etf ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\buizel\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\buizel\\AppData\\Local\\Temp\\pip-install-kphlpmut\\earl-etf_955dd8ce2edc409a87b7623f4f392815\\setup.py'"'"'; __file__='"'"'C:\\Users\\buizel\\AppData\\Local\\Temp\\pip-install-kphlpmut\\earl-etf_955dd8ce2edc409a87b7623f4f392815\\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\buizel\AppData\Local\Temp\pip-record-7gy7si8c\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\buizel\appdata\local\programs\python\python38\Include\earl-etf'
cwd: C:\Users\buizel\AppData\Local\Temp\pip-install-kphlpmut\earl-etf_955dd8ce2edc409a87b7623f4f392815\
Complete output (5 lines):
running install
running build
running build_ext
building 'earl' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\buizel\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\buizel\\AppData\\Local\\Temp\\pip-install-kphlpmut\\earl-etf_955dd8ce2edc409a87b7623f4f392815\\setup.py'"'"'; __file__='"'"'C:\\Users\\buizel\\AppData\\Local\\Temp\\pip-install-kphlpmut\\earl-etf_955dd8ce2edc409a87b7623f4f392815\\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\buizel\AppData\Local\Temp\pip-record-7gy7si8c\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\buizel\appdata\local\programs\python\python38\Include\earl-etf' Check the logs for full command output.
Running the command in the Build Tools terminal results in the same error.
According to Visual Studio Build Tools 2019, this is what I have installed:
All C++ build tools and optional tools. Additionally, I installed VS2019 Community. I have already restarted my computer many times.
Pip version is pip 21.0.1
Python version is Python 3.8.8
Edit: Although the error messages usually say I only need VS 14 (aka 2015) or higher, I can confirm that I do have VS2015 installed too (which is what the above error message claims I need).
Have you tried installing wheel package
Much Love from India
Sanjiv
So I tried to pip install pycaw so I could use, from pycaw.pycaw import AudioUtilities, in my program but when I tried to pip install with pip install pycaw I get an error saying
ERROR: Command errored out with exit status 1: 'C:\Users\Carme\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Carme\\AppData\\Local\\Temp\\pip-install-c302u53r\\comtypes\\setup.py'"'"'; __file__='"'"'C:\\Users\\Carme\\AppData\\Local\\Temp\\pip-install-c302u53r\\comtypes\\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\Carme\AppData\Local\Temp\pip-record-l9tmjphk\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Carme\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Include\comtypes' Check the logs for full command output.
Can anyone tell me how to fix this?
Check that you have the Visual Studio C++ build tools installed:
https://visualstudio.microsoft.com/visual-cpp-build-tools/
enter image description hereI want to install glove_python library on windows 10 so There was an error , I tried to download ( visual build tools and mingw ) but I got the same error What should I do ?
Failed to build glove-python
Installing collected packages: glove-python
Running setup.py install for glove-python ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Green\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Green\\AppData\\Local\\Temp\\pip-install-w9uo706s\\glove-python\\setup.py'"'"'; __file__='"'"'C:\\Users\\Green\\AppData\\Local\\Temp\\pip-install-w9uo706s\\glove-python\\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\Green\AppData\Local\Temp\pip-record-i5e8cm27\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Green\anaconda3\Include\glove-python'
cwd: C:\Users\Green\AppData\Local\Temp\pip-install-w9uo706s\glove-python\
Complete output (6 lines):
running install
running build
running build_py
running build_ext
building 'glove.glove_cython' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio"
As I am running CMD as administrator and trying to install pyaudio by pip install pyaudio I am getting the folloing error. I also have installed MS-VS C++ 14.
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\cloud analogy\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\CLOUDA~1\AppData\Local\Temp\pip-install-dcxzpwri\pyaudio\setup.py'"'"'; __file__='"'"'C:\Users\CLOUDA~1\AppData\Local\Temp\pip-install-dcxzpwri\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\CLOUDA~1\AppData\Local\Temp\pip-record-1s6dsj4b\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\CLOUDA~1\AppData\Local\Temp\pip-install-dcxzpwri\pyaudio\
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
copying src\pyaudio.py -> build\lib.win32-3.7
running build_ext
building '_portaudio' 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\cloud analogy\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\CLOUDA~1\AppData\Local\Temp\pip-install-dcxzpwri\pyaudio\setup.py'"'"'; __file__='"'"'C:\Users\CLOUDA~1\AppData\Local\Temp\pip-install-dcxzpwri\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\CLOUDA~1\AppData\Local\Temp\pip-record-1s6dsj4b\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
Since you are on windows, go to https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
and download pyaudio according to the version of python that you have
Then navigate to the directory that contains your file and install the module except replacing the module name with the file name
e.g.
pip install PyAudio‑0.2.11‑cp39‑cp39‑win_amd64.whl
This is the error that I'm facing while installing pymrmr with the command -
pip install pymrmr
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Buil
dTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with
exit status 2
I am facing the following error during install pymrmr
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-wn37r25z\pymrmr_8299da47bb1249e8adefe32989c011b4\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-wn37r25z\pymrmr_8299da47bb1249e8adefe32989c011b4\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\User\AppData\Local\Temp\pip-record-r71o_m6f\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\Include\pymrmr' Check the logs for full command output.enter image description here
The pymrmr depends on numpy and Cython. You need to install the dependencies, then you should have no problem installing pymrmr:
pip install numpy Cython
pip install pymrmr
For more information, please go to https://pypi.org/project/pymrmr/