I am not able to install pipeline

File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\transformers\utils\import_utils.py:1130, in _LazyModule._get_module(self, module_name)
   1129 try:
-> 1130     return importlib.import_module("." + module_name, self.__name__)
   1131 except Exception as e:

File C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\importlib\__init__.py:126, in import_module(name, package)
    125         level += 1
--> 126 return _bootstrap._gcd_import(name[level:], package, level)

File :1050, in _gcd_import(name, package, level)

File :1027, in _find_and_load(name, import_)

File :1006, in _find_and_load_unlocked(name, import_)

File :688, in _load_unlocked(spec)

File :883, in exec_module(self, module)

File :241, in _call_with_frames_removed(f, *args, **kwds)

File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\transformers\pipelines\__init__.py:44
     35 from ..utils import (
...
   1134         f" traceback):\n{e}"
   1135     ) from e

RuntimeError: Failed to import transformers.pipelines because of the following error (look up to see its traceback):
[WinError 193] %1 is not a valid Win32 application

It shows the following error when I import pipeline from transformer

1 Like