LmeSzinc / AzurLaneAutoScript

Azur Lane bot (CN/EN/JP/TW) 碧蓝航线脚本 | 无缝委托科研,全自动大世界
https://alas.azurlane.cloud
GNU General Public License v3.0
6.98k stars 839 forks source link

psutil: Could not build wheels for psutil which use PEP 517 and cannot be installed directly #2042

Closed KylezXing closed 1 year ago

KylezXing commented 1 year ago

在提问之前...

描述你的问题

alas 启动后updater报错,显示 Could not build wheels for psutil which use PEP 517 and cannot be installed directly

如何复现

No response

预期行为

No response

相关 Logs

Requirement already satisfied: zope.interface==5.4.0 in e:\alasapp_0.3.5\azurlaneautoscript\toolkit\lib\site-packages (from -r requirements.txt (line 94)) (5.4.0)
Requirement already satisfied: setuptools in e:\alasapp_0.3.5\azurlaneautoscript\toolkit\lib\site-packages (from gevent==21.12.0->-r requirements.txt (line 29)) (42.0.2)
Building wheels for collected packages: psutil
  Building wheel for psutil (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: 'E:\AlasApp_0.3.5\AzurLaneAutoScript\toolkit\python.exe' 'E:\AlasApp_0.3.5\AzurLaneAutoScript\toolkit\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\f3go_t\AppData\Local\Temp\tmpg4an83tc'
       cwd: C:\Users\f3go_t\AppData\Local\Temp\pip-install-vgmrho81\psutil
  Complete output (38 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\_compat.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\runner.py -> 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_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
  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
  Running setup.py clean for psutil
Failed to build psutil
ERROR: Could not build wheels for psutil which use PEP 517 and cannot be installed directly
[ failure ], error_code: 1
+-----------------------------------------------------+
|                    UPDATE FAILED                    |
+-----------------------------------------------------+
==================== SHOW DEPLOY CONFIG ====================
Repository: https://gitee.com/lmeszinc/azur-lane-auto-script-mirror
Branch: dev
PypiMirror: https://pypi.tuna.tsinghua.edu.cn/simple
EnableRemoteAccess: True
SSHServer: app.hk1.azurlane.cloud:10022
Language: zh-CN
CDN: True
Rest of the configs are the same as default

Last command: "E:/AlasApp_0.3.5/AzurLaneAutoScript/toolkit/python.exe" -m pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --disable-pip-version-check
Please check your deploy settings in config/deploy.yaml and re-open Alas.exe
Take the screenshot of entire window if you need help

截图

1671974765200

还有别的吗?

No response

KylezXing commented 1 year ago

已经能正常启动,非常感谢