-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
windows 10 - python 3.11.0 - error installing psutil #2165
Comments
Hi, i have the same error here. I tried a few version of VC++ without any success. |
Duplicates #2163 |
same error in Linux Ubuntu 22.04.1 LTS when installing psutil |
same here. This worked |
same error in linux aarch64 (base) root@davinci-mini:/home/HwHiAiUser# pip install --no-binary :all: psutil
DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at https://github.com/pypa/pip/issues/11453
Looking in indexes: https://pypi.douban.com/simple
Collecting psutil
Downloading https://pypi.doubanio.com/packages/de/eb/1c01a34c86ee3b058c556e407ce5b07cb7d186ebe47b3e69d6f152ca5cc5/psutil-5.9.3.tar.gz (483 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 483.6/483.6 kB 3.5 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: psutil
Building wheel for psutil (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for psutil (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-39
creating build/lib.linux-aarch64-cpython-39/psutil
copying psutil/_psosx.py -> build/lib.linux-aarch64-cpython-39/psutil
copying psutil/_psposix.py -> build/lib.linux-aarch64-cpython-39/psutil
copying psutil/_pssunos.py -> build/lib.linux-aarch64-cpython-39/psutil
copying psutil/_psaix.py -> build/lib.linux-aarch64-cpython-39/psutil
copying psutil/_pswindows.py -> build/lib.linux-aarch64-cpython-39/psutil
copying psutil/_pslinux.py -> build/lib.linux-aarch64-cpython-39/psutil
copying psutil/_common.py -> build/lib.linux-aarch64-cpython-39/psutil
copying psutil/__init__.py -> build/lib.linux-aarch64-cpython-39/psutil
copying psutil/_psbsd.py -> build/lib.linux-aarch64-cpython-39/psutil
copying psutil/_compat.py -> build/lib.linux-aarch64-cpython-39/psutil
creating build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/test_aix.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/test_unicode.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/test_bsd.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/test_testutils.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/test_contracts.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/test_memleaks.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/__main__.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/test_osx.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/test_process.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/test_system.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/__init__.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/test_connections.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/runner.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
running build_ext
building 'psutil._psutil_linux' extension
creating build/temp.linux-aarch64-cpython-39
creating build/temp.linux-aarch64-cpython-39/psutil
gcc -pthread -B /usr/local/miniconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /usr/local/miniconda3/include -I/usr/local/miniconda3/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /usr/local/miniconda3/include -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=593 -DPSUTIL_LINUX=1 -I/usr/local/miniconda3/include/python3.9 -c psutil/_psutil_common.c -o build/temp.linux-aarch64-cpython-39/psutil/_psutil_common.o
gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
gcc: error: unrecognized command line option ‘-n1’; did you mean ‘-n’?
gcc: error: unrecognized command line option ‘-n1’; did you mean ‘-n’?
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psutil
Failed to build psutil
ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects |
Same Error |
Same error - Python 3.9, Windows 10 |
I also have the same issue. |
Same Error Building wheels for collected packages: psutil × Building wheel for psutil (pyproject.toml) did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. |
If there are no special needs, you can install the old version first and wait for the update. |
I got the same error |
I got the same error. I've tried different syntax to install psutil but all didn't work. |
Same error for me |
You guys have to download Microsoft Visual Studio and install C++ MSVC v14. |
I should have this fixed today. Hang tight. |
This should now be fixed. Please confirm.
|
Yes, it's working now. |
hello, I still got this error, on arm64, ubuntu18.04, python3.9. I have tried both 5.9.4 and 5.9.3. gcc is 7.5.0, need to upgrade to higher version ?
|
I think I must've installed a newer psutil to get this working last time. giampaolo/psutil#2165 I've confirmed this works on a linux machine without a compiler CC @mihaimaruseac
Do I have to upgrade to the Python version? Is version 3.9 not supported? |
While I am trying to install psutil on windows 10 with python 3.11.0, I getting the following error
Could you direct me to how to resolve it
` __building 'psutil._psutil_windows' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psutil
Failed to build psutil
ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects__ `
The text was updated successfully, but these errors were encountered: