-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't install cocoapi on Windows 10 #185
Comments
The maintainers won't provide support for Windows: #9 (comment) |
did u fix it ? plz help |
This fork compiles on Windows: https://github.com/philferriere/cocoapi |
From conda command prompt do these two commands. Just copy and paste and enter to run. It will install the pycocotools. Then you can use the demo files in the repository. Or just use google colab. |
impoved py3.5 to py3.6 or greater, and tried again.It succeed! |
Changing python3.5 to python3.6 works for me! Thanks! |
(base) C:\Users\tmcde>pip3 install "git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI"
|
I was facing the same issue. I just changed pip to pip3 and it worked. Use "pip3 install git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI". Hope this works. |
İ fix the problem i have been trying to fix this for a long time. if u get this problem always Failed building wheel for pycocotools, you should download and set up visual C++ 2015 bulid tools, i made this after that problem solved. here can help you https://github.com/philferriere/cocoapi |
Hi, the problem has not been solved.Capable of Do you have? |
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality. Getting this issue! any solution? |
Install cocoapi on Windows 10When I attempt to install YOLOX, I can't install cocoapi on my PC. I created an env
Then following the yolox Installation tutorial Like you guys, I stuck at Here is my solution. I hope it will be helpful :) Environment
Steps
Problems
PostscriptThis method was obtained by searching information on the Internet, I just did a little integration work. I hope it is useful, it solves my problem. If this method is useless, please continue to search for solutions on the Internet. GOOD LUCK! |
I translated the decode function here: https://github.com/armengot/test_coco_api/blob/main/python/forkcocowin.py But it works more slowly (C types in Python). |
I am using a virtual environment in Conda using python 3.5 and have already installed cython and the all dependencies. I tried to install pycocotools with the command pip install pycocotools, using the Github created fot Windows
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI.
And always I obtain the same error:
(py36_tf18) C:\Users\Adrian>pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
Collecting git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
Cloning https://github.com/philferriere/cocoapi.git to c:\users\adrian\appdata\local\temp\pip-req-build-xw8vs02j
Building wheels for collected packages: pycocotools
Running setup.py bdist_wheel for pycocotools ... error
Complete output from command C:\Users\Adrian\AppData\Local\Continuum\anaconda2\envs\py36_tf18\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Adrian\AppData\Local\Temp\pip-req-build-xw8vs02j\PythonAPI\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\Adrian\AppData\Local\Temp\pip-wheel-onof6vu2 --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\pycocotools
copying pycocotools\coco.py -> build\lib.win-amd64-3.5\pycocotools
copying pycocotools\cocoeval.py -> build\lib.win-amd64-3.5\pycocotools
copying pycocotools\mask.py -> build\lib.win-amd64-3.5\pycocotools
copying pycocotools_init_.py -> build\lib.win-amd64-3.5\pycocotools
running build_ext
building 'pycocotools._mask' extension
error: [WinError 2] El sistema no puede encontrar el archivo especificado
Failed building wheel for pycocotools
Running setup.py clean for pycocotools
Complete output from command C:\Users\Adrian\AppData\Local\Continuum\anaconda2\envs\py36_tf18\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Adrian\AppData\Local\Temp\pip-req-build-xw8vs02j\PythonAPI\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" clean --all:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Adrian\AppData\Local\Temp\pip-req-build-xw8vs02j\PythonAPI\setup.py", line 25, in
cythonize(ext_modules)
File "C:\Users\Adrian\AppData\Local\Continuum\anaconda2\envs\py36_tf18\lib\site-packages\Cython\Build\Dependencies.py", line 897, in cythonize
aliases=aliases)
File "C:\Users\Adrian\AppData\Local\Continuum\anaconda2\envs\py36_tf18\lib\site-packages\Cython\Build\Dependencies.py", line 777, in create_extension_list
for file in nonempty(sorted(extended_iglob(filepattern)), "'%s' doesn't match any files" % filepattern):
File "C:\Users\Adrian\AppData\Local\Continuum\anaconda2\envs\py36_tf18\lib\site-packages\Cython\Build\Dependencies.py", line 102, in nonempty
raise ValueError(error_msg)
ValueError: 'pycocotools/_mask.pyx' doesn't match any files
Failed cleaning build dir for pycocotools
Failed to build pycocotools
Installing collected packages: pycocotools
Running setup.py install for pycocotools ... error
Complete output from command C:\Users\Adrian\AppData\Local\Continuum\anaconda2\envs\py36_tf18\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Adrian\AppData\Local\Temp\pip-req-build-xw8vs02j\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\Adrian\AppData\Local\Temp\pip-record-s00wlqn2\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
running build_ext
building 'pycocotools._mask' extension
error: [WinError 2] El sistema no puede encontrar el archivo especificado
Command "C:\Users\Adrian\AppData\Local\Continuum\anaconda2\envs\py36_tf18\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Adrian\AppData\Local\Temp\pip-req-build-xw8vs02j\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\Adrian\AppData\Local\Temp\pip-record-s00wlqn2\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Adrian\AppData\Local\Temp\pip-req-build-xw8vs02j\PythonAPI
Thanks for your attention
The text was updated successfully, but these errors were encountered: