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

[Windows] Python 3.10 fails to install psutil (no wheel) #1994

Closed
aaaaaa2493 opened this issue Oct 7, 2021 · 5 comments
Closed

[Windows] Python 3.10 fails to install psutil (no wheel) #1994

aaaaaa2493 opened this issue Oct 7, 2021 · 5 comments

Comments

@aaaaaa2493
Copy link

Summary

  • OS: Windows
  • Architecture: 64bit
  • Psutil version: Trying to install 5.8.0
  • Python version: Python 3.10.0
  • Type: wheels, installation

Description

In Python 3.9.7 psutil installs without any problems, however in Python 3.10 there's the following error.
Isn't it because there's no whl for 3.10 yet (https://pypi.org/project/psutil/#files) and if so, could you please tell when to expect whl for 3.10?

(venv310) D:\GitHub\hs-test-python>pip install psutil
Collecting psutil
  Using cached psutil-5.8.0.tar.gz (470 kB)
Building wheels for collected packages: psutil
  Building wheel for psutil (setup.py) ... error
    ERROR: Command errored out with exit status 1:
     command: 'D:\GitHub\hs-test-python\venv310\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\aaaaa\\AppData\\Local\\Temp\\pip-inst
all-kyzytdlj\\psutil_0a6563cf13fc4c41a7c096d170e3353b\\setup.py'"'"'; __file__='"'"'C:\\Users\\aaaaa\\AppData\\Local\\Temp\\pip-install-kyzytdlj\\psutil_0a6563cf13fc4c41a7c096d170e3353
b\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().rep
lace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\aaaaa\AppData\Local\Temp\pip-record-59_xd10g\install-record.txt'
--single-version-externally-managed --compile --install-headers 'D:\GitHub\hs-test-python\venv310\include\site\python3.10\psutil'
         cwd: C:\Users\aaaaa\AppData\Local\Temp\pip-install-kyzytdlj\psutil_0a6563cf13fc4c41a7c096d170e3353b\
    Complete output (38 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.10
    creating build\lib.win-amd64-3.10\psutil
    copying psutil\_common.py -> build\lib.win-amd64-3.10\psutil
    copying psutil\_compat.py -> build\lib.win-amd64-3.10\psutil
    copying psutil\_psaix.py -> build\lib.win-amd64-3.10\psutil
    copying psutil\_psbsd.py -> build\lib.win-amd64-3.10\psutil
    copying psutil\_pslinux.py -> build\lib.win-amd64-3.10\psutil
    copying psutil\_psosx.py -> build\lib.win-amd64-3.10\psutil
    copying psutil\_psposix.py -> build\lib.win-amd64-3.10\psutil
    copying psutil\_pssunos.py -> build\lib.win-amd64-3.10\psutil
    copying psutil\_pswindows.py -> build\lib.win-amd64-3.10\psutil
    copying psutil\__init__.py -> build\lib.win-amd64-3.10\psutil
    creating build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\runner.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\test_aix.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\test_bsd.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\test_connections.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\test_contracts.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\test_linux.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\test_memleaks.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\test_misc.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\test_osx.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\test_posix.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\test_process.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\test_sunos.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\test_system.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\test_testutils.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\test_unicode.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\test_windows.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\__init__.py -> build\lib.win-amd64-3.10\psutil\tests
    copying psutil\tests\__main__.py -> build\lib.win-amd64-3.10\psutil\tests
    running build_ext
    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/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\GitHub\hs-test-python\venv310\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\aaaa
a\\AppData\\Local\\Temp\\pip-install-kyzytdlj\\psutil_0a6563cf13fc4c41a7c096d170e3353b\\setup.py'"'"'; __file__='"'"'C:\\Users\\aaaaa\\AppData\\Local\\Temp\\pip-install-kyzytdlj\\psuti
l_0a6563cf13fc4c41a7c096d170e3353b\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup;
setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\aaaaa\AppData\Local\Temp\pip-rec
ord-59_xd10g\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\GitHub\hs-test-python\venv310\include\site\python3.10\psutil' Check the logs for fu
ll command output.
@aaaaaa2493 aaaaaa2493 added the bug label Oct 7, 2021
@aaaaaa2493 aaaaaa2493 changed the title [Windows] Python 3.10 fails to install psutil with "Microsoft Visual C++ 14.0 or greater is required" [Windows] Python 3.10 fails to install psutil (no wheel) Oct 7, 2021
@Akarys42
Copy link

The same issue happens on Linux too

@auvipy
Copy link

auvipy commented Nov 10, 2021

@giampaolo can we get a new release this year? wanna release billiard 4.0 with that

@giampaolo
Copy link
Owner

Closing as duplicate of #2012. Not sure when I'm gonna release. I hope soon.

@auvipy
Copy link

auvipy commented Nov 10, 2021

thanks. if you need another helping hand let me know.

@giampaolo
Copy link
Owner

New psutil 5.9.0 is out, and it includes Python 3.10 wheels.

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

No branches or pull requests

4 participants