1.失败日记
Collecting psutil
Using cached https://files.pythonhosted.org/packages/2a/80/336820c1ad9286a4ded7e845b2eccfcb27851ab8ac6abece774a6ff4d3de/psutil-7.0.0.tar.gz
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Building wheels for collected packages: psutil
Building wheel for psutil (PEP 517): started
Building wheel for psutil (PEP 517): finished with status 'error'
Running setup.py clean for psutil
Failed to build psutil
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Administrator\AppData\Local\Programs\Python\Python37\python.exe' 'C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\ADMINI~1\AppData\Local\Temp\tmpiu6z711r'
cwd: C:\Users\Administrator\AppData\Local\Temp\pycharm-packaging\psutil
Complete output (40 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-37
creating build\lib.win-amd64-cpython-37\psutil
copying psutil\_common.py -> build\lib.win-amd64-cpython-37\psutil
copying psutil\_psaix.py -> build\lib.win-amd64-cpython-37\psutil
copying psutil\_psbsd.py -> build\lib.win-amd64-cpython-37\psutil
copying psutil\_pslinux.py -> build\lib.win-amd64-cpython-37\psutil
copying psutil\_psosx.py -> build\lib.win-amd64-cpython-37\psutil
copying psutil\_psposix.py -> build\lib.win-amd64-cpython-37\psutil
copying psutil\_pssunos.py -> build\lib.win-amd64-cpython-37\psutil
copying psutil\_pswindows.py -> build\lib.win-amd64-cpython-37\psutil
copying psutil\__init__.py -> build\lib.win-amd64-cpython-37\psutil
creating build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_aix.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_bsd.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_connections.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_contracts.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_linux.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_memleaks.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_misc.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_osx.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_posix.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_process.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_process_all.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_scripts.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_sunos.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_system.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_testutils.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_unicode.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\test_windows.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\__init__.py -> build\lib.win-amd64-cpython-37\psutil\tests
copying psutil\tests\__main__.py -> build\lib.win-amd64-cpython-37\psutil\tests
warning: build_py: byte-compiling is disabled, skipping.
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: Failed building wheel for psutil
ERROR: Could not build wheels for psutil which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.