Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22233

How can I correctly pip install cython_bbox on Windows?

$
0
0

I want to pip install cython_bbox on my windows, however, an error happened!

I have anaconda with python 3.7 in my computer before, and in its envs I created a new environment which has python3.6 to pip install cython_bbox for my own projects. However, it failed! Detailsare as follows.

First, in cmd, I cd to where the pip locates, in my computer is H:\Anaconda\anzhuang\envs\py36\Scripts,and then I code pip install cython_bbox -i https://pypi.tuna.tsinghua.edu.cn/simple,then errors become as follows.

Downloading https://pypi.tuna.tsinghua.edu.cn/packages/fa/b9/fc7d60e8c3b29cc0ff24a3bb3c4b7457e10b7610fbb2893741b623487b34/cython_bbox-0.1.3.tar.gz (41 kB)     |████████████████████████████████| 41 kB 15 kB/sBuilding wheels for collected packages: cython-bbox  Building wheel for cython-bbox (setup.py) ... error**ERROR: Command errored out with exit status 1:   command: 'H:\Anaconda\anzhuang\envs\py36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\DELL\\AppData\\Local\\Temp\\pip-install-uxpzezf0\\cython-bbox\\setup.py'"'"'; __file__='"'"'C:\\Users\\DELL\\AppData\\Local\\Temp\\pip-install-uxpzezf0\\cython-bbox\\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\DELL\AppData\Local\Temp\pip-wheel-9_vzchgo'       cwd: C:\Users\DELL\AppData\Local\Temp\pip-install-uxpzezf0\cython-bbox\  Complete output (38 lines):  running bdist_wheel  running build  running build_ext  building 'cython_bbox' extension  creating build  creating build\temp.win-amd64-3.6  creating build\temp.win-amd64-3.6\Release  creating build\temp.win-amd64-3.6\Release\src  G:\gcc\mingw64\bin\gcc.exe -mdll -O -Wall -DMS_WIN64 -IH:\Anaconda\anzhuang\envs\py36\lib\site-packages\numpy\core\include -IH:\Anaconda\anzhuang\envs\py36\include -IH:\Anaconda\anzhuang\envs\py36\include -c src/cython_bbox.c -o build\temp.win-amd64-3.6\Release\src\cython_bbox.o -Wno-cpp  In file included from H:\Anaconda\anzhuang\envs\py36\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:1832,                   from H:\Anaconda\anzhuang\envs\py36\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:12,                   from H:\Anaconda\anzhuang\envs\py36\lib\site-packages\numpy\core\include/numpy/arrayobject.h:4,                   from src/cython_bbox.c:622:  H:\Anaconda\anzhuang\envs\py36\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h:14:9: note: #pragma message: H:\Anaconda\anzhuang\envs\py36\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION   #pragma message(_WARN___LOC__"Using deprecated NumPy API, disable it with " \           ^~~~~~~  src/cython_bbox.c: In function '__Pyx_ImportType':  src/cython_bbox.c:6977:13: warning: unknown conversion type character 'z' in format [-Wformat=]"%s.%s size changed, may indicate binary incompatibility. "               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  src/cython_bbox.c:6978:24: note: format string is defined here"Expected %zd from C header, got %zd from PyObject",                          ^  src/cython_bbox.c:6977:13: warning: unknown conversion type character 'z' in format [-Wformat=]"%s.%s size changed, may indicate binary incompatibility. "               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  src/cython_bbox.c:6978:47: note: format string is defined here"Expected %zd from C header, got %zd from PyObject",                                                 ^  src/cython_bbox.c:6977:13: warning: too many arguments for format [-Wformat-extra-args]"%s.%s size changed, may indicate binary incompatibility. "               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  writing build\temp.win-amd64-3.6\Release\src\cython_bbox.cp36-win_amd64.def  creating build\lib.win-amd64-3.6  G:\gcc\mingw64\bin\gcc.exe -shared -s build\temp.win-amd64-3.6\Release\src\cython_bbox.o build\temp.win-amd64-3.6\Release\src\cython_bbox.cp36-win_amd64.def -LH:\Anaconda\anzhuang\envs\py36\libs -LH:\Anaconda\anzhuang\envs\py36\PCbuild\amd64 -lpython36 -lmsvcr140 -o build\lib.win-amd64-3.6\cython_bbox.cp36-win_amd64.pyd  G:/gcc/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmsvcr140  collect2.exe: error: ld returned 1 exit status  error: command 'G:\\gcc\\mingw64\\bin\\gcc.exe' failed with exit status 1  ----------------------------------------  ERROR: Failed building wheel for cython-bbox**Running setup.py clean for cython-bboxFailed to build cython-bboxInstalling collected packages: cython-bbox    Running setup.py install for cython-bbox ... error**ERROR: Command errored out with exit status 1:     command: 'H:\Anaconda\anzhuang\envs\py36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\DELL\\AppData\\Local\\Temp\\pip-install-uxpzezf0\\cython-bbox\\setup.py'"'"'; __file__='"'"'C:\\Users\\DELL\\AppData\\Local\\Temp\\pip-install-uxpzezf0\\cython-bbox\\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\DELL\AppData\Local\Temp\pip-record-epuiic8t\install-record.txt' --single-version-externally-managed --compile --install-headers 'H:\Anaconda\anzhuang\envs\py36\Include\cython-bbox'         cwd: C:\Users\DELL\AppData\Local\Temp\pip-install-uxpzezf0\cython-bbox\    Complete output (38 lines):    running install    running build    running build_ext    building 'cython_bbox' extension    creating build    creating build\temp.win-amd64-3.6    creating build\temp.win-amd64-3.6\Release    creating build\temp.win-amd64-3.6\Release\src    G:\gcc\mingw64\bin\gcc.exe -mdll -O -Wall -DMS_WIN64 -IH:\Anaconda\anzhuang\envs\py36\lib\site-packages\numpy\core\include -IH:\Anaconda\anzhuang\envs\py36\include -IH:\Anaconda\anzhuang\envs\py36\include -c src/cython_bbox.c -o build\temp.win-amd64-3.6\Release\src\cython_bbox.o -Wno-cpp    In file included from H:\Anaconda\anzhuang\envs\py36\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:1832,                     from H:\Anaconda\anzhuang\envs\py36\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:12,                     from H:\Anaconda\anzhuang\envs\py36\lib\site-packages\numpy\core\include/numpy/arrayobject.h:4,                     from src/cython_bbox.c:622:    H:\Anaconda\anzhuang\envs\py36\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h:14:9: note: #pragma message: H:\Anaconda\anzhuang\envs\py36\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION     #pragma message(_WARN___LOC__"Using deprecated NumPy API, disable it with " \             ^~~~~~~    src/cython_bbox.c: In function '__Pyx_ImportType':    src/cython_bbox.c:6977:13: warning: unknown conversion type character 'z' in format [-Wformat=]"%s.%s size changed, may indicate binary incompatibility. "                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    src/cython_bbox.c:6978:24: note: format string is defined here"Expected %zd from C header, got %zd from PyObject",                            ^    src/cython_bbox.c:6977:13: warning: unknown conversion type character 'z' in format [-Wformat=]"%s.%s size changed, may indicate binary incompatibility. "                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    src/cython_bbox.c:6978:47: note: format string is defined here"Expected %zd from C header, got %zd from PyObject",                                                   ^    src/cython_bbox.c:6977:13: warning: too many arguments for format [-Wformat-extra-args]"%s.%s size changed, may indicate binary incompatibility. "                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    writing build\temp.win-amd64-3.6\Release\src\cython_bbox.cp36-win_amd64.def    creating build\lib.win-amd64-3.6    G:\gcc\mingw64\bin\gcc.exe -shared -s build\temp.win-amd64-3.6\Release\src\cython_bbox.o build\temp.win-amd64-3.6\Release\src\cython_bbox.cp36-win_amd64.def -LH:\Anaconda\anzhuang\envs\py36\libs -LH:\Anaconda\anzhuang\envs\py36\PCbuild\amd64 -lpython36 -lmsvcr140 -o build\lib.win-amd64-3.6\cython_bbox.cp36-win_amd64.pyd    G:/gcc/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmsvcr140    collect2.exe: error: ld returned 1 exit status    error: command 'G:\\gcc\\mingw64\\bin\\gcc.exe' failed with exit status 1    ----------------------------------------ERROR: Command errored out with exit status 1: 'H:\Anaconda\anzhuang\envs\py36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\DELL\\AppData\\Local\\Temp\\pip-install-uxpzezf0\\cython-bbox\\setup.py'"'"'; __file__='"'"'C:\\Users\\DELL\\AppData\\Local\\Temp\\pip-install-uxpzezf0\\cython-bbox\\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\DELL\AppData\Local\Temp\pip-record-epuiic8t\install-record.txt' --single-version-externally-managed --compile --install-headers 'H:\Anaconda\anzhuang\envs\py36\Include\cython-bbox' Check the logs for full command output.**

Viewing all articles
Browse latest Browse all 22233

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>