numpy icon indicating copy to clipboard operation
numpy copied to clipboard

BUG: Cannot install numpy on UOS system.

Open SmartDev-0205 opened this issue 1 year ago • 6 comments

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

SmartDev-0205 avatar May 03 '23 09:05 SmartDev-0205

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

mattip avatar May 04 '23 04:05 mattip

Maybe UOS is https://en.wikipedia.org/wiki/Unity_Operating_System ?

matthew-brett avatar May 04 '23 07:05 matthew-brett

UOS is linux system.

SmartDev-0205 avatar May 09 '23 14:05 SmartDev-0205

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,请问你解决这个问题了吗?

houzhifan000 avatar Feb 21 '24 08:02 houzhifan000

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?

houzhifan000 avatar Feb 21 '24 09:02 houzhifan000

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.

mattip avatar Feb 21 '24 14:02 mattip