Помоги мне устранить ошибки во время установки /storage/emulated/0 $ pip install…
- User
Помоги мне устранить ошибки во время установки /storage/emulated/0 $ pip install --no-binary :all: numpy==1.22.0
Collecting numpy==1.22.0 Downloading numpy-1.22.0.zip (11.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.3/11.3 MB 2.4 MB/s eta 0:00:00 Installing build dependencies ... done WARNING: Missing build requirements in pyproject.toml for numpy==1.22.0 from https://files.pythonhosted.org/packages/50/e1/9b0c184f04b8cf5f3c941ffa56fbcbe936888bdac9aa7ba6bae405ac752b/numpy-1.22.0.zip. WARNING: The project does not specify a build backend, and pip cannot fall back to setuptools without 'setuptools>=40.8.0'. Getting requirements to build wheel ... error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [28 lines of output] :66: RuntimeWarning: NumPy 1.22.0 may not yet support Python 3.11. Running from numpy source directory. Traceback (most recent call last): File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires self.run_setup() File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/setuptools/build_meta.py", line 522, in run_setup super().run_setup(setup_script=setup_script) File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/setuptools/build_meta.py", line 320, in run_setup exec(code, locals()) File "", line 85, in File "/data/data/ru.iiec.pydroid3/cache/pip-install-grr5m7ag/numpy_f7a3a1a5d6154cacbf314d5b883f4851/numpy/distutils/core.py", line 24, in from numpy.distutils.command import config, config_compiler,
File "/data/data/ru.iiec.pydroid3/cache/pip-install-grr5m7ag/numpy_f7a3a1a5d6154cacbf314d5b883f4851/numpy/distutils/command/config.py", line 19, in from numpy.distutils.mingw32ccompiler import generate_manifest File "/data/data/ru.iiec.pydroid3/cache/pip-install-grr5m7ag/numpy_f7a3a1a5d6154cacbf314d5b883f4851/numpy/distutils/mingw32ccompiler.py", line 28, in from distutils.msvccompiler import get_build_version as get_build_msvc_version ModuleNotFoundError: No module named 'distutils.msvccompiler' [end of output]note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel 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. /storage/emulated/0 $ pip install --no-binary :all: scipy==1.10.0 Collecting scipy==1.10.0 Downloading scipy-1.10.0.tar.gz (42.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.4/42.4 MB 381.6 kB/s eta 0:00:00 Installing build dependencies ... error error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [107 lines of output] Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "aarch64" and platform_python_implementation != "PyPy"' don't match your environment Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment Ignoring numpy: markers 'python_version == "3.9" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment Ignoring numpy: markers 'platform_machine == "loongarch64"' don't match your environment Ignoring numpy: markers 'python_version == "3.10" and platform_system == "Windows" and platform_python_implementation != "PyPy"' don't match your environment Ignoring numpy: markers 'python_version == "3.8" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "aarch64" and platform_machine != "loongarch64" and platform_python_implementation != "PyPy"' don't match your environment Ignoring numpy: markers 'python_version == "3.9" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "loongarch64" and platform_python_implementation != "PyPy"' don't match your environment Ignoring numpy: markers 'python_version == "3.10" and (platform_system != "Windows" and platform_machine != "loongarch64") and platform_python_implementation != "PyPy"' don't match your environment Ignoring numpy: markers 'python_version >= "3.12"' don't match your environment Ignoring numpy: markers 'python_version >= "3.8" and platform_python_implementation == "PyPy"' don't match your environment Collecting meson-python<0.12.0,>=0.11.0 Downloading meson_python-0.11.0.tar.gz (43 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.1/43.1 kB 413.0 kB/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' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [73 lines of output] The Meson build system Version: 1.6.1 Source dir: /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc Build dir: /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/build Build type: native build Project name: meson-python Project version: 0.11.0 Host machine cpu family: aarch64 Host machine cpu: aarch64 Program python found: YES (/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/python3.11) Build targets in project: 0 meson-python 0.11.0 User defined options Native files: /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-native-file.ini debug : false optimization: 2 prefix : /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android Found ninja-1.11.1 at /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/ninja Generating targets: | | 0/0 eta ? Writing build.ninja: 0%| | 0/24 eta ? ninja: no work to do. INFO: autodetecting backend as ninja INFO: calculating backend command to run: /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/ninja ninja: Entering directory `/data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/build' ninja: no work to do. Compiling '/data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/install/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/mesonpy/__init__.py'... Compiling '/data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/install/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/mesonpy/_compat.py'... Compiling '/data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/install/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/mesonpy/_elf.py'... Compiling '/data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/install/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/mesonpy/_tags.py'... Compiling '/data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/install/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/mesonpy/_util.py'... Compiling '/data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/install/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/mesonpy/_wheelfile.py'... Installing /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/mesonpy/__init__.py to /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/install/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/mesonpy Installing /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/mesonpy/_compat.py to /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/install/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/mesonpy Installing /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/mesonpy/_elf.py to /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/install/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/mesonpy Installing /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/mesonpy/_tags.py to /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/install/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/mesonpy Installing /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/mesonpy/_util.py to /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/install/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/mesonpy Installing /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/mesonpy/_wheelfile.py to /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/install/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/mesonpy Running custom install script '/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/python3.11 /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/build/meson-private/pycompile.py python-3.11-installed.json 0' + meson setup --prefix=/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/build --native-file=/data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-native-file.ini -Ddebug=false -Doptimization=2 + meson compile + meson install --destdir /data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/.mesonpy-nm95ot24/install Traceback (most recent call last): File "/data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> main() File "/data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel whl_basename = backend.build_wheel(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/mesonpy/__init__.py", line 1061, in build_wheel return project.wheel(out).name ^^^^^^^^^^^^^^^^^^ File "/data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/mesonpy/__init__.py", line 920, in wheel wheel = self._wheel_builder.build(self._build_dir) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/mesonpy/__init__.py", line 508, in build whl.writestr(f'{self.distinfo_dir}/METADATA', self._project.metadata) ^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/functools.py", line 1001, in __get__ val = self.func(instance) ^^^^^^^^^^^^^^^^^^^ File "/data/data/ru.iiec.pydroid3/cache/pip-install-d8grk00q/meson-python_3646f5a61649421a918a33f5d438fddc/mesonpy/__init__.py", line 833, in metadata core_metadata.headers['Version'] = [self.version] ^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'RFC822Message' object has no attribute 'headers'. Did you mean: '_headers'? [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. /storage/emulated/0 pip install --no-cache-dir --force-reinstall numpy Collecting numpy Downloading numpy-2.2.1.tar.gz (20.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 20.2/20.2 MB 493.8 kB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [112 lines of output] + /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/python3.11 /data/data/ru.iiec.pydroid3/cache/pip-install-a4iyrpn_/numpy_57ae287bf52448989083ba50c0477dfe/vendored-meson/meson/meson.py setup /data/data/ru.iiec.pydroid3/cache/pip-install-a4iyrpn_/numpy_57ae287bf52448989083ba50c0477dfe /data/data/ru.iiec.pydroid3/cache/pip-install-a4iyrpn_/numpy_57ae287bf52448989083ba50c0477dfe/.mesonpy-h3tbt_4r -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/data/data/ru.iiec.pydroid3/cache/pip-install-a4iyrpn_/numpy_57ae287bf52448989083ba50c0477dfe/.mesonpy-h3tbt_4r/meson-python-native-file.ini The Meson build system Version: 1.5.2 Source dir: /data/data/ru.iiec.pydroid3/cache/pip-install-a4iyrpn_/numpy_57ae287bf52448989083ba50c0477dfe Build dir: /data/data/ru.iiec.pydroid3/cache/pip-install-a4iyrpn_/numpy_57ae287bf52448989083ba50c0477dfe/.mesonpy-h3tbt_4r Build type: native build Project name: NumPy Project version: 2.2.1 C compiler for the host machine: cc (gcc 11.4.0 "cc (GCC) 11.4.0") C linker for the host machine: cc ld.bfd 2.40 C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (GCC) 11.4.0") C++ linker for the host machine: c++ ld.bfd 2.40 Cython compiler for the host machine: cython (cython 3.0.11) Host machine cpu family: aarch64 Host machine cpu: aarch64 Program python found: YES (/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/python3.11) Found pkg-config: YES (/data/user/0/ru.iiec.pydroid3/files/bin/pkg-config) 0.28 Run-time dependency python found: YES 3.11 Has header "Python.h" with dependency python-3.11: YES Compiler for C supports arguments -fno-strict-aliasing: YES Message: During parsing cpu-dispatch: The following CPU features were ignored due to platform incompatibility or lack of support: "XOP FMA4" Test features "NEON NEON_FP16 NEON_VFPV4 ASIMD" : Supported Test features "ASIMDHP" : Supported Test features "ASIMDFHM" : Supported Test features "SVE" : Supported Configuring npy_cpu_dispatch_config.h using configuration Message: CPU Optimization Options baseline: Requested : min Enabled : NEON NEON_FP16 NEON_VFPV4 ASIMD dispatch: Requested : max -xop -fma4 Enabled : ASIMDHP ASIMDFHM SVE
Library m found: YES Run-time dependency scipy-openblas found: NO (tried pkgconfig) Found CMake: /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/cmake (3.26.4) WARNING: CMake Toolchain: Failed to determine CMake compilers state Run-time dependency openblas found: NO (tried pkgconfig, pkgconfig, pkgconfig, system and cmake) Run-time dependency flexiblas found: NO (tried pkgconfig and cmake) Run-time dependency blis found: NO (tried pkgconfig and cmake) Run-time dependency blas found: NO (tried pkgconfig and system) Run-time dependency openblas found: NO (tried pkgconfig, pkgconfig, pkgconfig, system and cmake) Run-time dependency flexiblas found: NO (tried pkgconfig and cmake) Run-time dependency lapack found: NO (tried pkgconfig and system) Checking if "Check atomic builtins without -latomic" : links: YES Program _build_utils/process_src_template.py found: YES (/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/python3.11 /data/data/ru.iiec.pydroid3/cache/pip-install-a4iyrpn_/numpy_57ae287bf52448989083ba50c0477dfe/numpy/_build_utils/process_src_template.py) Program _build_utils/tempita.py found: YES (/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/python3.11 /data/data/ru.iiec.pydroid3/cache/pip-install-a4iyrpn_/numpy_57ae287bf52448989083ba50c0477dfe/numpy/_build_utils/tempita.py) Configuring __config__.py using configuration ../numpy/meson.build:442: WARNING: The variable(s) 'BLAS_INCLUDEDIR', 'BLAS_LIBDIR', 'BLAS_OPENBLAS_CONFIG', 'BLAS_PCFILEDIR', 'BLAS_TYPE_NAME', 'BLAS_VERSION', 'LAPACK_INCLUDEDIR', 'LAPACK_LIBDIR', 'LAPACK_OPENBLAS_CONFIG', 'LAPACK_PCFILEDIR', 'LAPACK_TYPE_NAME', 'LAPACK_VERSION' in the input file 'numpy/__config__.py.in' are not present in the given configuration data. Checking for size of "short" : 2 Checking for size of "int" : 4 Checking for size of "long" : 8 Checking for size of "long long" : 8 Checking for size of "float" : 4 Checking for size of "double" : 8 Checking for size of "long double" : 16 Checking for size of "size_t" : 8 Checking for size of "size_t" : 8 (cached) Checking for size of "wchar_t" : 4 Checking for size of "off_t" : 8 Checking for size of "Py_intptr_t" with dependency python-3.11: 8 Checking for size of "PY_LONG_LONG" with dependency python-3.11: 8 Has header "complex.h" : YES Checking for type "complex float" : YES Checking for size of "complex float" : 8 Checking for type "complex double" : YES Checking for size of "complex double" : 16 Checking for type "complex long double" : YES Checking for size of "complex long double" : 32 Checking for function "sin" with dependency -lm: YES Checking for function "cos" with dependency -lm: YES Checking for function "tan" with dependency -lm: YES Checking for function "sinh" with dependency -lm: YES Checking for function "cosh" with dependency -lm: YES Checking for function "tanh" with dependency -lm: YES Checking for function "fabs" with dependency -lm: YES Checking for function "floor" with dependency -lm: YES Checking for function "ceil" with dependency -lm: YES Checking for function "sqrt" with dependency -lm: YES Checking for function "log10" with dependency -lm: YES Checking for function "log" with dependency -lm: YES Checking for function "exp" with dependency -lm: YES Checking for function "asin" with dependency -lm: YES Checking for function "acos" with dependency -lm: YES Checking for function "atan" with dependency -lm: YES Checking for function "fmod" with dependency -lm: YES Checking for function "modf" with dependency -lm: YES Checking for function "frexp" with dependency -lm: YES Checking for function "ldexp" with dependency -lm: YES Checking for function "expm1" with dependency -lm: YES Checking for function "log1p" with dependency -lm: YES Checking for function "acosh" with dependency -lm: YES Checking for function "asinh" with dependency -lm: YES Checking for function "atanh" with dependency -lm: YES Checking for function "rint" with dependency -lm: YES Checking for function "trunc" with dependency -lm: YES Checking for function "exp2" with dependency -lm: YES Checking for function "copysign" with dependency -lm: YES Checking for function "nextafter" with dependency -lm: YES Checking for function "cbrt" with dependency -lm: YES Checking for function "log2" with dependency -lm: YES Checking for function "pow" with dependency -lm: YES Checking for function "hypot" with dependency -lm: YES Checking for function "atan2" with dependency -lm: YES Checking for function "csin" with dependency -lm: NO ../numpy/_core/meson.build:202:4: ERROR: Problem encountered: Function `csin` not found A full log can be found at /data/data/ru.iiec.pydroid3/cache/pip-install-a4iyrpn_/numpy_57ae287bf52448989083ba50c0477dfe/.mesonpy-h3tbt_4r/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. /storage/emulated/0 $ pip install --no-cache-dir --force-reinstall scip
Collecting scip Obtaining dependency information for scip from https://files.pythonhosted.org/packages/05/ed/a948a2ba75513e581167a291a1f02c262923ef18bb28511740a39370051c/scip-0.1.12-py3-none-any.whl.metadata Downloading scip-0.1.12-py3-none-any.whl.metadata (3.3 kB) Collecting numpy (from scip) Downloading numpy-2.2.1.tar.gz (20.2 MB) ━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/20.2 MB 852.9 kB/s eta 0:00:21
- Assistant
У вас возникли проблемы с установкой библиотек
numpyиscipyна платформе Android с использованием Pydroid 3, что может быть вызвано несколькими причинами, связанными с зависимостями и совместимостью версий. Давайте разберем несколько шагов, которые вы можете предпринять, чтобы попытаться решить эти проблемы.1. Убедитесь, что Pydroid 3 обновлен
Прежде всего, убедитесь, что у вас установлена последняя версия Pydroid 3, так как обновления могут содержать исправления и новые версии библиотек.
2. Устанавливайте бинарные версии
Попробуйте установить
numpyиscipyс использованием бинарных версий, так как это устранит необходимость компиляции из исходников:pip install numpy==1.22.0 pip install scipy==1.10.0Если вам действительно нужно установить их без бинарных файлов, убедитесь в наличии всех необходимых инструментов для сборки.
3. Установка недостающих зависимостей
Если вы сталкиваетесь с ошибками, связанными с отсутствующими модулями, такими как
distutilsилиsetuptools, попробуйте установить их:pip install setuptools pip install wheel4. Проверьте версию Python
Убедитесь, что вы используете совместимую версию Python. Например,
numpyиscipyмогут не поддерживать Python 3.11. Попробуйте использовать более старую версию, например, 3.10:Вы также можете попробовать создать виртуальное окружение с нужной версией Python, если это поддерживается в вашем приложении.
5. Установка OpenBLAS
Для некоторых библиотек, таких как
numpyиscipy, требуется наличие соответствующей библиотеки BLAS (например, OpenBLAS). Попробуйте установить ее, если это возможно.6. Установка предварительно собранных пакетов
Есть вероятность, что для вашей платформы доступны некоторый предварительно собранные пакеты. Попробуйте использовать следующие команды, чтобы найти и установить их:
pip install numpy --only-binary=:all: pip install scipy --only-binary=:all:7. Использование альтернативных методов установки
Если все вышеперечисленное не сработало, возможно, стоит рассмотреть установку через альтернативные методы, такие как
conda, если это возможно в вашей среде.8. Прочтение документации и сообществ
Обратите внимание на официальные страницы документации
numpyиscipy, а также форумы и группы поддержки Pydroid для получения обновленной информации о совместимости и проблемах.Если после выполнения этих шагов у вас все еще возникают ошибки, пожалуйста, предоставьте дополнительные сообщения об ошибках для более точного анализа.
- User
/storage/emulated/0 $ pip install setuptools Requirement already satisfied: setuptools in /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages (75.6.0)
/storage/emulated/0 pip install numpy --only-binary=:all: ERROR: Could not find a version that satisfies the requirement numpy (from versions: none) ERROR: No matching distribution found for numpy /storage/emulated/0 pip install numpy==1.22.0
Collecting numpy==1.22.0 Using cached numpy-1.22.0.zip (11.3 MB) Installing build dependencies ... done WARNING: Missing build requirements in pyproject.toml for numpy==1.22.0 from https://files.pythonhosted.org/packages/50/e1/9b0c184f04b8cf5f3c941ffa56fbcbe936888bdac9aa7ba6bae405ac752b/numpy-1.22.0.zip. WARNING: The project does not specify a build backend, and pip cannot fall back to setuptools without 'setuptools>=40.8.0'. Getting requirements to build wheel ... error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [28 lines of output] :66: RuntimeWarning: NumPy 1.22.0 may not yet support Python 3.11. Running from numpy source directory. Traceback (most recent call last): File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires self.run_setup() File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/setuptools/build_meta.py", line 522, in run_setup super().run_setup(setup_script=setup_script) File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/setuptools/build_meta.py", line 320, in run_setup exec(code, locals()) File "", line 85, in File "/data/data/ru.iiec.pydroid3/cache/pip-install-xhmusmu1/numpy_f8d0c63d9f6a47ba8f3c45364640973d/numpy/distutils/core.py", line 24, in from numpy.distutils.command import config, config_compiler,
File "/data/data/ru.iiec.pydroid3/cache/pip-install-xhmusmu1/numpy_f8d0c63d9f6a47ba8f3c45364640973d/numpy/distutils/command/config.py", line 19, in from numpy.distutils.mingw32ccompiler import generate_manifest File "/data/data/ru.iiec.pydroid3/cache/pip-install-xhmusmu1/numpy_f8d0c63d9f6a47ba8f3c45364640973d/numpy/distutils/mingw32ccompiler.py", line 28, in from distutils.msvccompiler import get_build_version as get_build_msvc_version ModuleNotFoundError: No module named 'distutils.msvccompiler' [end of output]note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel 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. /storage/emulated/0 $ pip install scipy==1.10.0 Collecting scipy==1.10.0 Using cached scipy-1.10.0.tar.gz (42.4 MB) Installing build dependencies ... error error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [158 lines of output] Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "aarch64" and platform_python_implementation != "PyPy"' don't match your environment Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment Ignoring numpy: markers 'python_version == "3.9" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment Ignoring numpy: markers 'platform_machine == "loongarch64"' don't match your environment Ignoring numpy: markers 'python_version == "3.10" and platform_system == "Windows" and platform_python_implementation != "PyPy"' don't match your environment Ignoring numpy: markers 'python_version == "3.8" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "aarch64" and platform_machine != "loongarch64" and platform_python_implementation != "PyPy"' don't match your environment Ignoring numpy: markers 'python_version == "3.9" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "loongarch64" and platform_python_implementation != "PyPy"' don't match your environment Ignoring numpy: markers 'python_version == "3.10" and (platform_system != "Windows" and platform_machine != "loongarch64") and platform_python_implementation != "PyPy"' don't match your environment Ignoring numpy: markers 'python_version >= "3.12"' don't match your environment Ignoring numpy: markers 'python_version >= "3.8" and platform_python_implementation == "PyPy"' don't match your environment Collecting meson-python<0.12.0,>=0.11.0 Obtaining dependency information for meson-python<0.12.0,>=0.11.0 from https://files.pythonhosted.org/packages/3d/e9/01bc1bf0a5feaaac504e1e5ad5a8b24088729103fb7229f57fb5c248b2a5/meson_python-0.11.0-py3-none-any.whl.metadata Downloading meson_python-0.11.0-py3-none-any.whl.metadata (4.7 kB) Collecting Cython<3.0,>=0.29.32 Obtaining dependency information for Cython<3.0,>=0.29.32 from https://files.pythonhosted.org/packages/7e/26/9d8de10005fedb1eceabe713348d43bae1dbab1786042ca0751a2e2b0f8c/Cython-0.29.37-py2.py3-none-any.whl.metadata Using cached Cython-0.29.37-py2.py3-none-any.whl.metadata (3.1 kB) Requirement already satisfied: pybind11>=2.10.1 in /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages (2.11.1) Collecting pythran<0.13.0,>=0.12.0 Obtaining dependency information for pythran<0.13.0,>=0.12.0 from https://files.pythonhosted.org/packages/21/5b/0ac28c9cdddbd262a5a14e3d6bcff662b967ea678a3638cb79e153b93843/pythran-0.12.2-py3-none-any.whl.metadata Downloading pythran-0.12.2-py3-none-any.whl.metadata (1.7 kB) Collecting wheel<0.39.0 Obtaining dependency information for wheel<0.39.0 from https://files.pythonhosted.org/packages/bd/7c/d38a0b30ce22fc26ed7dbc087c6d00851fb3395e9d0dac40bec1f905030c/wheel-0.38.4-py3-none-any.whl.metadata Downloading wheel-0.38.4-py3-none-any.whl.metadata (2.1 kB) Collecting numpy>=1.23.2 Using cached numpy-2.2.1.tar.gz (20.2 MB) 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' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [112 lines of output] + /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/python3.11 /data/data/ru.iiec.pydroid3/cache/pip-install-7qr8vuzi/numpy_02c35c1f34c24515a064632a8b067092/vendored-meson/meson/meson.py setup /data/data/ru.iiec.pydroid3/cache/pip-install-7qr8vuzi/numpy_02c35c1f34c24515a064632a8b067092 /data/data/ru.iiec.pydroid3/cache/pip-install-7qr8vuzi/numpy_02c35c1f34c24515a064632a8b067092/.mesonpy-vfadrxx5 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/data/data/ru.iiec.pydroid3/cache/pip-install-7qr8vuzi/numpy_02c35c1f34c24515a064632a8b067092/.mesonpy-vfadrxx5/meson-python-native-file.ini The Meson build system Version: 1.5.2 Source dir: /data/data/ru.iiec.pydroid3/cache/pip-install-7qr8vuzi/numpy_02c35c1f34c24515a064632a8b067092 Build dir: /data/data/ru.iiec.pydroid3/cache/pip-install-7qr8vuzi/numpy_02c35c1f34c24515a064632a8b067092/.mesonpy-vfadrxx5 Build type: native build Project name: NumPy Project version: 2.2.1 C compiler for the host machine: cc (gcc 11.4.0 "cc (GCC) 11.4.0") C linker for the host machine: cc ld.bfd 2.40 C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (GCC) 11.4.0") C++ linker for the host machine: c++ ld.bfd 2.40 Cython compiler for the host machine: cython (cython 3.0.11) Host machine cpu family: aarch64 Host machine cpu: aarch64 Program python found: YES (/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/python3.11) Found pkg-config: YES (/data/user/0/ru.iiec.pydroid3/files/bin/pkg-config) 0.28 Run-time dependency python found: YES 3.11 Has header "Python.h" with dependency python-3.11: YES Compiler for C supports arguments -fno-strict-aliasing: YES Message: During parsing cpu-dispatch: The following CPU features were ignored due to platform incompatibility or lack of support: "XOP FMA4" Test features "NEON NEON_FP16 NEON_VFPV4 ASIMD" : Supported Test features "ASIMDHP" : Supported Test features "ASIMDFHM" : Supported Test features "SVE" : Supported Configuring npy_cpu_dispatch_config.h using configuration Message: CPU Optimization Options baseline: Requested : min Enabled : NEON NEON_FP16 NEON_VFPV4 ASIMD dispatch: Requested : max -xop -fma4 Enabled : ASIMDHP ASIMDFHM SVE Library m found: YES Run-time dependency scipy-openblas found: NO (tried pkgconfig) Found CMake: /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/cmake (3.26.4) WARNING: CMake Toolchain: Failed to determine CMake compilers state Run-time dependency openblas found: NO (tried pkgconfig, pkgconfig, pkgconfig, system and cmake) Run-time dependency flexiblas found: NO (tried pkgconfig and cmake) Run-time dependency blis found: NO (tried pkgconfig and cmake) Run-time dependency blas found: NO (tried pkgconfig and system) Run-time dependency openblas found: NO (tried pkgconfig, pkgconfig, pkgconfig, system and cmake) Run-time dependency flexiblas found: NO (tried pkgconfig and cmake) Run-time dependency lapack found: NO (tried pkgconfig and system) Checking if "Check atomic builtins without -latomic" : links: YES Program _build_utils/process_src_template.py found: YES (/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/python3.11 /data/data/ru.iiec.pydroid3/cache/pip-install-7qr8vuzi/numpy_02c35c1f34c24515a064632a8b067092/numpy/_build_utils/process_src_template.py) Program _build_utils/tempita.py found: YES (/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/python3.11 /data/data/ru.iiec.pydroid3/cache/pip-install-7qr8vuzi/numpy_02c35c1f34c24515a064632a8b067092/numpy/_build_utils/tempita.py) Configuring __config__.py using configuration ../numpy/meson.build:442: WARNING: The variable(s) 'BLAS_INCLUDEDIR', 'BLAS_LIBDIR', 'BLAS_OPENBLAS_CONFIG', 'BLAS_PCFILEDIR', 'BLAS_TYPE_NAME', 'BLAS_VERSION', 'LAPACK_INCLUDEDIR', 'LAPACK_LIBDIR', 'LAPACK_OPENBLAS_CONFIG', 'LAPACK_PCFILEDIR', 'LAPACK_TYPE_NAME', 'LAPACK_VERSION' in the input file 'numpy/__config__.py.in' are not present in the given configuration data. Checking for size of "short" : 2 Checking for size of "int" : 4 Checking for size of "long" : 8 Checking for size of "long long" : 8 Checking for size of "float" : 4 Checking for size of "double" : 8 Checking for size of "long double" : 16 Checking for size of "size_t" : 8 Checking for size of "size_t" : 8 (cached) Checking for size of "wchar_t" : 4 Checking for size of "off_t" : 8 Checking for size of "Py_intptr_t" with dependency python-3.11: 8 Checking for size of "PY_LONG_LONG" with dependency python-3.11: 8 Has header "complex.h" : YES Checking for type "complex float" : YES Checking for size of "complex float" : 8 Checking for type "complex double" : YES Checking for size of "complex double" : 16 Checking for type "complex long double" : YES Checking for size of "complex long double" : 32 Checking for function "sin" with dependency -lm: YES Checking for function "cos" with dependency -lm: YES Checking for function "tan" with dependency -lm: YES Checking for function "sinh" with dependency -lm: YES Checking for function "cosh" with dependency -lm: YES Checking for function "tanh" with dependency -lm: YES Checking for function "fabs" with dependency -lm: YES Checking for function "floor" with dependency -lm: YES Checking for function "ceil" with dependency -lm: YES Checking for function "sqrt" with dependency -lm: YES Checking for function "log10" with dependency -lm: YES Checking for function "log" with dependency -lm: YES Checking for function "exp" with dependency -lm: YES Checking for function "asin" with dependency -lm: YES Checking for function "acos" with dependency -lm: YES Checking for function "atan" with dependency -lm: YES Checking for function "fmod" with dependency -lm: YES Checking for function "modf" with dependency -lm: YES Checking for function "frexp" with dependency -lm: YES Checking for function "ldexp" with dependency -lm: YES Checking for function "expm1" with dependency -lm: YES Checking for function "log1p" with dependency -lm: YES Checking for function "acosh" with dependency -lm: YES Checking for function "asinh" with dependency -lm: YES Checking for function "atanh" with dependency -lm: YES Checking for function "rint" with dependency -lm: YES Checking for function "trunc" with dependency -lm: YES Checking for function "exp2" with dependency -lm: YES Checking for function "copysign" with dependency -lm: YES Checking for function "nextafter" with dependency -lm: YES Checking for function "cbrt" with dependency -lm: YES Checking for function "log2" with dependency -lm: YES Checking for function "pow" with dependency -lm: YES Checking for function "hypot" with dependency -lm: YES Checking for function "atan2" with dependency -lm: YES Checking for function "csin" with dependency -lm: NO ../numpy/_core/meson.build:202:4: ERROR: Problem encountered: Function `csin` not found A full log can be found at /data/data/ru.iiec.pydroid3/cache/pip-install-7qr8vuzi/numpy_02c35c1f34c24515a064632a8b067092/.mesonpy-vfadrxx5/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. /storage/emulated/0 $
- Assistant
Судя по всему, вы столкнулись с проблемами, связанными с установкой
numpyиscipyв Pydroid 3 на Android. Вот несколько шагов, которые вы можете предпринять для устранения этой проблемы:1. Использование предустановленных версий
Если вы не можете установить
numpyиscipyиз-за проблем с компиляцией исходного кода, попробуйте использовать предустановленные версии, которые предназначены для вашей платформы. Обычно в Pydroid 3 есть встроенная поддержка для установки некоторых библиотек.Попробуйте сделать следующее:
- Откройте Pydroid 3.
- Перейдите в раздел "Pip", который находится в меню.
- Попробуйте выполнить установку
numpyиscipyиз этого интерфейса, так как он может автоматически находить подходящие предустановленные версии.
2. Установка через другие источники
Вы также можете попробовать использовать альтернативные репозитории, такие как:
pip install numpy --index-url https://pypi.org/simple pip install scipy --index-url https://pypi.org/simple3. Попробуйте установить более старые версии
Версии
numpyиscipy, которые вы пытаетесь установить, могут быть несовместимы с вашей версией Python. Вы можете попробовать установить более старые версии:pip install numpy==1.21.6 pip install scipy==1.7.34. Убедитесь, что установлены все зависимости
Возможны ситуации, когда для компиляции требуется наличие других библиотек. Поищите информацию о том, как установить необходимые зависимости для работы с
numpyиscipyна Android, или обратитесь к документации Pydroid 3.5. Исправление ошибок установки
Если проблемы продолжаются, возможно, стоит рассмотреть возможность обращения к сообществу поддержки Pydroid 3 или на форумы, такие как Stack Overflow, с конкретным сообщением об ошибке, которое вы получаете.
Заключение
Если ни один из предложенных шагов не работает, возможно, вам следует подумать о запуске вашего кода на другой платформе, такой как Linux, Windows или macOS, где установка
numpyиscipyпроще через систему пакетного менеджмента или Anaconda.Ожидаю вашего ответа, чтобы помочь вам дальше!