Ошибка: python setup.py egg_info не был запущен успешно. При установке Intel-расширения для-трансформеровPython

Программы на Python
Ответить Пред. темаСлед. тема
Anonymous
 Ошибка: python setup.py egg_info не был запущен успешно. При установке Intel-расширения для-трансформеров

Сообщение Anonymous »

Я следую руководству https://intel.github.io/intel-extension ... lama3/xpu/ для локального запуска моделей Llama 3, однако при настройке я получаю следующую ошибку: среде и запустив команду pip install -v . .

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

 Traceback (most recent call last):
File "", line 2, in 
File "
", line 34, in 
File "C:\Users\rohit\intel-extension-for-transformers\setup.py", line 14, in 
from intel_extension_for_transformers.tools.utils import get_gpu_family
File "C:\Users\rohit\intel-extension-for-transformers\intel_extension_for_transformers\tools\utils.py", line 21, in 
import torch
File "C:\Users\rohit\miniconda3\envs\llm\lib\site-packages\torch\__init__.py", line 139, in 
raise err
OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\rohit\miniconda3\envs\llm\lib\site-packages\torch\lib\backend_with_compiler.dll" or one of its dependencies.
error: subprocess-exited-with-error

× python setup.py egg_info 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.
full command: 'C:\Users\rohit\miniconda3\envs\llm\python.exe' -c '
exec(compile('"'"''"'"''"'"'
# This is  -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
#   import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
#   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
#     manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize

try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute `setup.py` since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)

__file__ = %r
sys.argv[0] = __file__

if os.path.exists(__file__):
filename = __file__
with tokenize.open(__file__) as f:
setup_py_code = f.read()
else:
filename = ""
setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'C:\\Users\\rohit\\intel-extension-for-transformers\\setup.py'"'"',), "", "exec"))' egg_info --egg-base 'C:\Users\rohit\AppData\Local\Temp\pip-pip-egg-info-upvjd4iu'
cwd: C:\Users\rohit\intel-extension-for-transformers\
Preparing metadata (setup.py) ... error
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.
Я не уверен, что это ошибка pip, поскольку я запустил pip install --upgrade setuptools, который был популярным решением после исследования этой проблемы, но безрезультатно. Я даже попытался регрессировать версию Python до 3.6 и попытался запустить команду, но это не сработало. Пожалуйста, рассмотрите этот вопрос.


Подробнее здесь: https://stackoverflow.com/questions/787 ... ling-intel
Реклама
Ответить Пред. темаСлед. тема

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

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

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

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

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

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