Skip to content
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

BUG: Cannot install numpy on UOS system. #23704

Open
SmartDev-0205 opened this issue May 3, 2023 · 6 comments
Open

BUG: Cannot install numpy on UOS system. #23704

SmartDev-0205 opened this issue May 3, 2023 · 6 comments
Labels

Comments

@SmartDev-0205
Copy link

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

@mattip
Copy link
Member

mattip commented May 4, 2023

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

@matthew-brett
Copy link
Contributor

@SmartDev-0205
Copy link
Author

UOS is linux system.

@houzhifan000
Copy link

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
Copy link

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?

@mattip
Copy link
Member

mattip commented Feb 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants