PaddlePaddle / PaddleX

All-in-One Development Tool based on PaddlePaddle(飞桨低代码开发工具)
Apache License 2.0
4.82k stars 949 forks source link

python3.12.5 安装paddlex模块报错 #2174

Open RemyHaijie opened 1 week ago

RemyHaijie commented 1 week ago

Checklist:

  1. 查找历史相关issue寻求解答
  2. 翻阅FAQ常见问题汇总和答疑
  3. 确认bug是否在新版本里还未修复
  4. 翻阅PaddleX API文档说明

描述问题

Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [100 lines of output] Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX" and platform_python_implementation == "CPython"' don't match your environment Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX" and platform_python_implementation != "CPython"' don't match your environment Ignoring numpy: markers 'python_version == "3.7" and platform_system != "AIX"' don't match your environment Ignoring numpy: markers 'python_version == "3.6" and platform_system == "AIX"' don't match your environment Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment Ignoring numpy: markers 'python_version >= "3.8" and platform_system == "AIX"' don't match your environment Collecting setuptools Downloading setuptools-75.1.0-py3-none-any.whl.metadata (6.9 kB) Collecting wheel Downloading wheel-0.44.0-py3-none-any.whl.metadata (2.3 kB) Collecting Cython>=0.28.5 Using cached Cython-3.0.11-cp312-cp312-win_amd64.whl.metadata (3.2 kB) Collecting numpy==1.17.3 Downloading numpy-1.17.3.zip (6.4 MB) ---------------------------------------- 6.4/6.4 MB 12.2 MB/s eta 0:00:00 Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting scipy>=0.19.1 Downloading scipy-1.14.1-cp312-cp312-win_amd64.whl.metadata (60 kB) INFO: pip is looking at multiple versions of scipy to determine which version is compatible with other requirements. This could take a while. Downloading scipy-1.14.0-cp312-cp312-win_amd64.whl.metadata (60 kB) Downloading scipy-1.13.1-cp312-cp312-win_amd64.whl.metadata (60 kB) Downloading scipy-1.13.0-cp312-cp312-win_amd64.whl.metadata (60 kB) Downloading scipy-1.12.0-cp312-cp312-win_amd64.whl.metadata (60 kB) Downloading scipy-1.11.4-cp312-cp312-win_amd64.whl.metadata (60 kB) Downloading scipy-1.11.3-cp312-cp312-win_amd64.whl.metadata (60 kB) Downloading scipy-1.11.2-cp312-cp312-win_amd64.whl.metadata (59 kB) INFO: pip is still looking at multiple versions of scipy to determine which version is compatible with other requirements. This could take a while. Downloading scipy-1.11.1.tar.gz (56.0 MB) --------------------------------------- 56.0/56.0 MB 13.9 MB/s eta 0:00:00 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 metadata (pyproject.toml): started Preparing metadata (pyproject.toml): still running... Preparing metadata (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error Preparing metadata (pyproject.toml) did not run successfully. exit code: 1 [44 lines of output] + meson setup C:\Users\Remy\AppData\Local\Temp\pip-install-98cve3yd\scipy_a86da955f38d4a06bf818d4d4f216afa C:\Users\Remy\AppData\Local\Temp\pip-install-98cve3yd\scipy_a86da955f38d4a06bf818d4d4f216afa.mesonpy-8d3929_e\build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\Remy\AppData\Local\Temp\pip-install-98cve3yd\scipy_a86da955f38d4a06bf818d4d4f216afa.mesonpy-8d3929_e\build\meson-python-native-file.ini The Meson build system Version: 1.5.2 Source dir: C:\Users\Remy\AppData\Local\Temp\pip-install-98cve3yd\scipy_a86da955f38d4a06bf818d4d4f216afa Build dir: C:\Users\Remy\AppData\Local\Temp\pip-install-98cve3yd\scipy_a86da955f38d4a06bf818d4d4f216afa.mesonpy-8d3929_e\build Build type: native build Project name: SciPy Project version: 1.11.1 C compiler for the host machine: gcc (gcc 8.1.0 "gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0") C linker for the host machine: gcc ld.bfd 2.30 C++ compiler for the host machine: c++ (gcc 8.1.0 "c++ (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0") C++ linker for the host machine: c++ ld.bfd 2.30 Cython compiler for the host machine: cython (cython 0.29.37) Host machine cpu family: x86_64 Host machine cpu: x86_64 Program python found: YES (C:\Users\Remy\AppData\Local\Programs\Python\Python312\python.exe) Run-time dependency python found: YES 3.12 Program cython found: YES (C:\Users\Remy\AppData\Local\Temp\pip-build-env-4jm84h11\overlay\Scripts\cython.EXE) Compiler for C supports arguments -Wno-unused-but-set-variable: YES Compiler for C supports arguments -Wno-unused-function: YES Compiler for C supports arguments -Wno-conversion: YES Compiler for C supports arguments -Wno-misleading-indentation: YES Library m found: YES Fortran compiler for the host machine: gfortran (gcc 8.1.0 "GNU Fortran (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0") Fortran linker for the host machine: gfortran ld.bfd 2.30 Compiler for Fortran supports arguments -Wno-conversion: YES Checking if "-Wl,--version-script" : links: YES Program pythran found: YES (C:\Users\Remy\AppData\Local\Temp\pip-build-env-4jm84h11\overlay\Scripts\pythran.EXE) Did not find pkg-config by name 'pkg-config' Found pkg-config: NO Found CMake: D:\SowftWare\cmake-3.18.2-win64-x64\bin\cmake.EXE (3.18.2) WARNING: CMake Toolchain: Failed to determine CMake compilers state Run-time dependency xsimd found: NO (tried pkgconfig and cmake) Run-time dependency threads found: YES Library npymath found: YES Library npyrandom found: YES pybind11-config found: YES (C:\Users\Remy\AppData\Local\Temp\pip-build-env-4jm84h11\overlay\Scripts\pybind11-config.EXE) 2.10.4 Run-time dependency pybind11 found: YES 2.10.4 Run-time dependency openblas found: NO (tried pkgconfig and cmake) Run-time dependency openblas found: NO (tried cmake) ....\scipy\meson.build:159:9: ERROR: Dependency lookup for OpenBLAS with method 'pkgconfig' failed: Pkg-config for machine host machine not found. Giving up. A full log can be found at C:\Users\Remy\AppData\Local\Temp\pip-install-98cve3yd\scipy_a86da955f38d4a06bf818d4d4f216afa.mesonpy-8d3929_e\build\meson-logs\meson-log.txt [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed Encountered error while generating package metadata. See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.

复现

  1. 您是否已经正常运行我们提供的教程? 否

环境

  1. 请提供您使用的PaddlePaddle和PaddleX的版本号 3.0.1b
  2. 请提供您使用的操作系统信息,如Linux/Windows/MacOS win10
  3. 请问您使用的Python版本是? python3.12.5
  4. 请问您使用的CUDA/cuDNN的版本号是? cpu
cuicheng01 commented 1 week ago

hi,您好,目前在未支持Python3.12,我们会在下一个版本支持,请使用首页推荐的Python版本(Python3.8,Python3.9,Python3.10)

Pointvar commented 1 week ago

你都3.12了,我3.11都没支持呢。 3.11都出来2年了。哈哈哈哈

Pointvar commented 1 week ago

3.11 的加速没支持,其他还是正常的。