«Нет модуля с именем numpy» при попытке установить eif из pypi с помощью pixiPython

Программы на Python
Ответить Пред. темаСлед. тема
Anonymous
 «Нет модуля с именем numpy» при попытке установить eif из pypi с помощью pixi

Сообщение Anonymous »

Я пытаюсь использовать pixi для библиотеки Python, и при попытке установить зависимость pipy eif возникает ошибка.

Код: Выделить всё

~/code> pixi init test-pixi-eif --format pyproject
✔ Created /home/oliver/code/test-pixi-eif/pyproject.toml
~/code/test-pixi-eif> cd test-pixi-eif/
~/code/test-pixi-eif> pixi add numpy
✔ Added numpy >=2.1.3, pixi add --pypi eif
× default: error installing/updating PyPI dependencies
├─▶ Failed to prepare distributions
├─▶ Failed to download and build `eif==2.0.2`
╰─▶ Build backend failed to determine requirements with `build_wheel()` (exit status: 1)

[stderr]
Traceback (most recent call last):
File "", line 14, in 
requires = get_requires_for_build({})
File "/home/oliver/.cache/rattler/cache/uv-cache/builds-v0/.tmplz6UaX/lib/python3.13/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/oliver/.cache/rattler/cache/uv-cache/builds-v0/.tmplz6UaX/lib/python3.13/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/home/oliver/.cache/rattler/cache/uv-cache/builds-v0/.tmplz6UaX/lib/python3.13/site-packages/setuptools/build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/oliver/.cache/rattler/cache/uv-cache/builds-v0/.tmplz6UaX/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "", line 3, in 
if sys.path[0] == "":
^^^^^^^^^^^^
ModuleNotFoundError: No module named 'numpy'
Соответствующий файл pyproject.toml:

Код: Выделить всё

[project]
authors = [{name = "foo", email = "bar"}]
description = "Add a short description here"
name = "test-pixi-eif"
requires-python = ">= 3.11"
version = "0.1.0"
dependencies = ["eif>=2.0.2,=2.1.3,

Подробнее здесь: [url]https://stackoverflow.com/questions/79227692/no-module-named-numpy-when-trying-to-install-eif-from-pypi-with-pixi[/url]
Реклама
Ответить Пред. темаСлед. тема

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

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

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

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

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

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