numpy
numpy copied to clipboard
BUG: Cannot install numpy on UOS system.
Describe the issue:
I am trying to install numpy on python3.11. I am using the UOS system. But I get an error and cannot install it.
#error Unknown CPU, please report this to numpy maintainers with
^~~~~
error: Command "gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ibuild/src.linux-sw_64-3.11/numpy/core/src/npymath -Inumpy/core/include -Ibuild/src.linux-sw_64-3.11/numpy/core/include/numpy -Ibuild/src.linux-sw_64-3.11/numpy/distutils/include -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -I/home/uos/OCR/venv/include -I/usr/local/include/python3.11 -Ibuild/src.linux-sw_64-3.11/numpy/core/src/common -Ibuild/src.linux-sw_64-3.11/numpy/core/src/npymath -c numpy/core/src/npymath/npy_math.c -o build/temp.linux-sw_64-3.11/numpy/core/src/npymath/npy_math.o -MMD -MF build/temp.linux-sw_64-3.11/numpy/core/src/npymath/npy_math.o.d" failed with exit status 1
Please let me know what is the solution.
Reproduce the code example:
I cannot install
Error message:
#error Unknown CPU, please report this to numpy maintainers with \
^~~~~
error: Command "gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ibuild/src.linux-sw_64-3.11/numpy/core/src/npymath -Inumpy/core/include -Ibuild/src.linux-sw_64-3.11/numpy/core/include/numpy -Ibuild/src.linux-sw_64-3.11/numpy/distutils/include -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -I/home/uos/OCR/venv/include -I/usr/local/include/python3.11 -Ibuild/src.linux-sw_64-3.11/numpy/core/src/common -Ibuild/src.linux-sw_64-3.11/numpy/core/src/npymath -c numpy/core/src/npymath/npy_math.c -o build/temp.linux-sw_64-3.11/numpy/core/src/npymath/npy_math.o -MMD -MF build/temp.linux-sw_64-3.11/numpy/core/src/npymath/npy_math.o.d" failed with exit status 1
Runtime information:
I cannot install
Context for the issue:
I cannot install
What is UOS? What architecture and compilers does it support? We have undocumented tier support for operating systems: glibc on x86_64 and aarch64, musl x86_64 and arm64, windows, and macOS are explicitly supported. AIX, ppc64 and s390x and others are not officially supported but we will accept patches as long as they seem reasonable. Perhaps you could contribute UOS support if you wish, on a "untested, use at your own risk" basis
Maybe UOS is https://en.wikipedia.org/wiki/Unity_Operating_System ?
UOS is linux system.
Hello brother, I have encountered the same problem as you. I have also encountered an unknown CPU issue when installing numpy1.19.5 source code on a server with SW_64 architecture and operating system Kylin. Python version 3.8.12. Have you resolved this issue? 兄弟你好,我遇到了和你一样的问题,我在sw_64架构的服务器,操作系统为kylin上安装numpy1.19.5的源码也遇到了unknown CPU的问题,python版本的3.8.12,请问你解决这个问题了吗?
What is UOS? What architecture and compilers does it support? We have undocumented tier support for operating systems: glibc on x86_64 and aarch64, musl x86_64 and arm64, windows, and macOS are explicitly supported. AIX, ppc64 and s390x and others are not officially supported but we will accept patches as long as they seem reasonable. Perhaps you could contribute UOS support if you wish, on a "untested, use at your own risk" basis
I have encountered the same problem,My server is a domestically produced server in China, with an architecture of SW_64 and an operating system of KylinV10. Will numpy provide support for SW_64 architecture servers in the future?
As stated above, someone who has this platform will have to do the work. It will not magically appear. Some clues how to do this are in the file where the error is triggered.