Как установить Pandas при сбое PIP из-за ошибки создания метаданных?Python

Программы на Python
Ответить
Anonymous
 Как установить Pandas при сбое PIP из-за ошибки создания метаданных?

Сообщение Anonymous »

Я пытаюсь установить Pandas в автономной установке Python 3.12, но постоянно получаю сообщение об ошибке «Ошибка генерации метаданных». Я могу установить Pandas в свою установку Anaconda, но мне нужно, чтобы она была полностью отдельной, потому что я использую ее для подключения к VB.net. Я обновил PIP и инструменты настройки и получаю ту же ошибку. Как мне установить Pandas?
Изображение

Команда установки и выходные данные следующие:
C:\Program Files (x86)\Python312-32\Scripts>pip install pandas
Defaulting to user installation because normal site-packages is not writeable
Collecting pandas
Using cached pandas-2.1.4.tar.gz (4.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
+ meson setup C:\Users\realt\AppData\Local\Temp\pip-install-ew6o36bq\pandas_25d69bcb06c84eb088749c1946920e14 C:\Users\realt\AppData\Local\Temp\pip-install-ew6o36bq\pandas_25d69bcb06c84eb088749c1946920e14\.mesonpy-swd4lt0x\build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=C:\Users\realt\AppData\Local\Temp\pip-install-ew6o36bq\pandas_25d69bcb06c84eb088749c1946920e14\.mesonpy-swd4lt0x\build\meson-python-native-file.ini
The Meson build system
Version: 1.2.1
Source dir: C:\Users\realt\AppData\Local\Temp\pip-install-ew6o36bq\pandas_25d69bcb06c84eb088749c1946920e14
Build dir: C:\Users\realt\AppData\Local\Temp\pip-install-ew6o36bq\pandas_25d69bcb06c84eb088749c1946920e14\.mesonpy-swd4lt0x\build
Build type: native build
Project name: pandas
Project version: 2.1.4
Activating VS 17.8.3
C compiler for the host machine: cl (msvc 19.38.33133 "Microsoft (R) C/C++ Optimizing Compiler Version 19.38.33133 for x64")
C linker for the host machine: link link 14.38.33133.0
C++ compiler for the host machine: cl (msvc 19.38.33133 "Microsoft (R) C/C++ Optimizing Compiler Version 19.38.33133 for x64")
C++ linker for the host machine: link link 14.38.33133.0
Cython compiler for the host machine: cython (cython 0.29.36)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (C:\Program Files (x86)\Python312-32\python.exe)
Need python for x86_64, but found x86
Run-time dependency python found: NO (tried sysconfig)

..\..\pandas\_libs\tslibs\meson.build:23:7: ERROR: Python dependency not found

A full log can be found at C:\Users\realt\AppData\Local\Temp\pip-install-ew6o36bq\pandas_25d69bcb06c84eb088749c1946920e14\.mesonpy-swd4lt0x\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.


Подробнее здесь: https://stackoverflow.com/questions/776 ... tion-error
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Python»