labelImg using with m1 pro issue with pip install pip3 install pyqt5 lxml - pip

I am currently trying to run labelImg on my mac m1pro. When trying to install qt5 with "pip3 install pyqt5 lxml" i get this error message:
`
Collecting PyQt5
Using cached PyQt5-5.15.7.tar.gz (3.2 MB)
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
╰─> [23 lines of output]
Querying qmake about your Qt installation...
Traceback (most recent call last):
File "/Users/romanxaver/miniforge3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 144, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/romanxaver/miniforge3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
main()
File "/Users/romanxaver/miniforge3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/romanxaver/miniforge3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 148, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/private/var/folders/wm/t87_jx651gvfm3t05dzg24440000gn/T/pip-build-env-lmy12lan/overlay/lib/python3.9/site-packages/sipbuild/api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
File "/private/var/folders/wm/t87_jx651gvfm3t05dzg24440000gn/T/pip-build-env-lmy12lan/overlay/lib/python3.9/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/private/var/folders/wm/t87_jx651gvfm3t05dzg24440000gn/T/pip-build-env-lmy12lan/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 601, in setup
self.update(tool)
File "project.py", line 166, in update
sipbuild.exceptions.UserException
[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.
`
Does anyone know the solution to this? When i try to install it with brew i get the following error at the point of "make qt5py3":
pyrcc5 -o libs/resources.py resources.qrc /Users/xxx/miniforge3/bin/python3: No module named PyQt5.pyrcc_main make: *** [qt5py3] Error 1
I wanted to install labelImg on my m1pro

Related

Error: Couldn't install gfpgan while installing Stable Diffusion Web UI on Mac M1

I'm trying to install Stable Diffusion (1.4) Web UI on Mac M1 but, encountered some errors such as;
RuntimeError: Couldn't install gfpgan.
ERROR: Unknown compiler(s): RuntimeError: Couldn't install gfpgan. ['gfortran'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']]
error while generating package metadata]
I think installing gfpgn is the problem I need to solve but I'm beginner and I'm not 100% sure what I'm doing. Does anyone know what is causing this problem, and know how to solve this?
Python 3.10.10 (main, Feb 13 2023, 03:22:17) [Clang 13.0.0 (clang-1300.0.29.30)]
Commit hash: 3715ece0adce7bf7c5e9c5ab3710b2fdc3848f39
Installing gfpgan
Traceback (most recent call last):
File "/Users/test/stable-diffusion-webui/launch.py", line 360, in <module>
prepare_environment()
File "/Users/test/stable-diffusion-webui/launch.py", line 275, in prepare_environment
run_pip(f"install {gfpgan_package}", "gfpgan")
File "/Users/test/stable-diffusion-webui/launch.py", line 137, in run_pip
return run(f'"{python}" -m pip {args} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}")
File "/Users/test/stable-diffusion-webui/launch.py", line 105, in run
raise RuntimeError(message)
RuntimeError: Couldn't install gfpgan.
Command: "/Users/test/stable-diffusion-webui/venv/bin/python3.10" -m pip install git+https://github.com/TencentARC/GFPGAN.git#8d2447a2d918f8eba5a4a01463fd48e45126a379 --prefer-binary
Error code: 1
stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git#8d2447a2d918f8eba5a4a01463fd48e45126a379
Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to /private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-req-build-5b4xmcdh
Resolved https://github.com/TencentARC/GFPGAN.git to commit 8d2447a2d918f8eba5a4a01463fd48e45126a379
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting basicsr>=1.4.2
Using cached basicsr-1.4.2.tar.gz (172 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting facexlib>=0.2.5
Using cached facexlib-0.2.5-py3-none-any.whl (59 kB)
Collecting lmdb
Using cached lmdb-1.4.0.tar.gz (881 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: numpy in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (1.24.2)
Collecting opencv-python
Using cached opencv_python-4.7.0.68-cp37-abi3-macosx_11_0_arm64.whl (31.1 MB)
Collecting pyyaml
Using cached PyYAML-6.0-cp310-cp310-macosx_11_0_arm64.whl (173 kB)
Collecting scipy
Using cached scipy-1.10.0.tar.gz (42.4 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'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
stderr: Running command git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git /private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-req-build-5b4xmcdh
Running command git rev-parse -q --verify 'sha^8d2447a2d918f8eba5a4a01463fd48e45126a379'
Running command git fetch -q https://github.com/TencentARC/GFPGAN.git 8d2447a2d918f8eba5a4a01463fd48e45126a379
Running command git checkout -q 8d2447a2d918f8eba5a4a01463fd48e45126a379
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [67 lines of output]
The Meson build system
Version: 1.0.0
Source dir: /private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-install-t_lw7dwf/scipy_264568832e744025ab891914b310ea7d
Build dir: /private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-install-t_lw7dwf/scipy_264568832e744025ab891914b310ea7d/.mesonpy-15hzghpm/build
Build type: native build
Project name: SciPy
Project version: 1.10.0
C compiler for the host machine: cc (clang 13.0.0 "Apple clang version 13.0.0 (clang-1300.0.29.30)")
C linker for the host machine: cc ld64 711
C++ compiler for the host machine: c++ (clang 13.0.0 "Apple clang version 13.0.0 (clang-1300.0.29.30)")
C++ linker for the host machine: c++ ld64 711
Host machine cpu family: aarch64
Host machine cpu: aarch64
Compiler for C supports arguments -Wno-unused-but-set-variable: NO
Compiler for C supports arguments -Wno-unused-function: YES
Compiler for C supports arguments -Wno-conversion: YES
Compiler for C supports arguments -Wno-misleading-indentation: YES
Compiler for C supports arguments -Wno-incompatible-pointer-types: YES
Library m found: YES
../../meson.build:63:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']]
The following exception(s) were encountered:
Running `gfortran --version` gave "[Errno 2] No such file or directory: 'gfortran'"
Running `gfortran -V` gave "[Errno 2] No such file or directory: 'gfortran'"
Running `flang --version` gave "[Errno 2] No such file or directory: 'flang'"
Running `flang -V` gave "[Errno 2] No such file or directory: 'flang'"
Running `nvfortran --version` gave "[Errno 2] No such file or directory: 'nvfortran'"
Running `nvfortran -V` gave "[Errno 2] No such file or directory: 'nvfortran'"
Running `pgfortran --version` gave "[Errno 2] No such file or directory: 'pgfortran'"
Running `pgfortran -V` gave "[Errno 2] No such file or directory: 'pgfortran'"
Running `ifort --version` gave "[Errno 2] No such file or directory: 'ifort'"
Running `ifort -V` gave "[Errno 2] No such file or directory: 'ifort'"
Running `ifx --version` gave "[Errno 2] No such file or directory: 'ifx'"
Running `ifx -V` gave "[Errno 2] No such file or directory: 'ifx'"
Running `g95 --version` gave "[Errno 2] No such file or directory: 'g95'"
Running `g95 -V` gave "[Errno 2] No such file or directory: 'g95'"
A full log can be found at /private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-install-t_lw7dwf/scipy_264568832e744025ab891914b310ea7d/.mesonpy-15hzghpm/build/meson-logs/meson-log.txt
+ meson setup --prefix=/opt/homebrew/Cellar/python#3.10/3.10.10/Frameworks/Python.framework/Versions/3.10 /private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-install-t_lw7dwf/scipy_264568832e744025ab891914b310ea7d /private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-install-t_lw7dwf/scipy_264568832e744025ab891914b310ea7d/.mesonpy-15hzghpm/build --native-file=/private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-install-t_lw7dwf/scipy_264568832e744025ab891914b310ea7d/.mesonpy-native-file.ini -Ddebug=false -Doptimization=2
Traceback (most recent call last):
File "/Users/test/stable-diffusion-webui/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/Users/test/stable-diffusion-webui/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/test/stable-diffusion-webui/venv/lib/python3.10/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 "/private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-build-env-3si693u2/overlay/lib/python3.10/site-packages/mesonpy/__init__.py", line 1060, in build_wheel
with _project(config_settings) as project:
File "/opt/homebrew/Cellar/python#3.10/3.10.10/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py", line 135, in __enter__
return next(self.gen)
File "/private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-build-env-3si693u2/overlay/lib/python3.10/site-packages/mesonpy/__init__.py", line 975, in _project
with Project.with_temp_working_dir(
File "/opt/homebrew/Cellar/python#3.10/3.10.10/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py", line 135, in __enter__
return next(self.gen)
File "/private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-build-env-3si693u2/overlay/lib/python3.10/site-packages/mesonpy/__init__.py", line 750, in with_temp_working_dir
yield cls(source_dir, tmpdir, build_dir, meson_args)
File "/private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-build-env-3si693u2/overlay/lib/python3.10/site-packages/mesonpy/__init__.py", line 632, in __init__
self._configure(reconfigure=bool(build_dir) and not native_file_mismatch)
File "/private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-build-env-3si693u2/overlay/lib/python3.10/site-packages/mesonpy/__init__.py", line 680, in _configure
self._meson('setup', *setup_args)
File "/private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-build-env-3si693u2/overlay/lib/python3.10/site-packages/mesonpy/__init__.py", line 657, in _meson
return self._proc('meson', *args)
File "/private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-build-env-3si693u2/overlay/lib/python3.10/site-packages/mesonpy/__init__.py", line 652, in _proc
subprocess.check_call(list(args), env=self._env)
File "/opt/homebrew/Cellar/python#3.10/3.10.10/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['meson', 'setup', '--prefix=/opt/homebrew/Cellar/python#3.10/3.10.10/Frameworks/Python.framework/Versions/3.10', '/private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-install-t_lw7dwf/scipy_264568832e744025ab891914b310ea7d', '/private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-install-t_lw7dwf/scipy_264568832e744025ab891914b310ea7d/.mesonpy-15hzghpm/build', '--native-file=/private/var/folders/rc/pf00qvl56wnb2p8p39vr_rc00000gp/T/pip-install-t_lw7dwf/scipy_264568832e744025ab891914b310ea7d/.mesonpy-native-file.ini', '-Ddebug=false', '-Doptimization=2']' returned non-zero exit status 1.
[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.
I read online that updating Python to 3.10 solved this issue but I'm already 3.10?

Installing Package qmesh

Hi I have trouble installing a package called qmesh (https://bitbucket.org/qmesh-developers/qmesh/src/master/)
Is there someone who could help me with this error:
C:\Users\sijbr\Downloads>pip install qmesh
Collecting qmesh
Using cached qmesh-1.0.2.tar.gz (66 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\sijbr\AppData\Local\Temp\pip-install-12czjmow\qmesh_9e30f1be34214b498daff60c6d9881ae\setup.py", line 212, in <module>
main()
File "C:\Users\sijbr\AppData\Local\Temp\pip-install-12czjmow\qmesh_9e30f1be34214b498daff60c6d9881ae\setup.py", line 38, in main
license_copied = subprocess.call(['cp','LICENSE','qmesh/'])
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 1440, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
[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.
C:\Users\sijbr\Downloads>
Could someone help me fix this error?

Error while installing my own Pip Package

I have recently uplodaded a simple **package **which consists of a parser that takes an *excel *file and converts it to *csv *format. The package is called felisaparser.
The problem comes when I try to pip install the package as I get the following error:
\
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\clash\AppData\Local\Temp\pip-install-iopmrx_1\felisaparser_b502d68ab1514a8aab4b01085810be9a\setup.py", line 5, in <module>
long_description = (this_directory / "README.md").read_text()
File "c:\Users\clash\AppData\Local\Continuum\anaconda3\lib\pathlib.py", line 1199, in read_text
with self.open(mode='r', encoding=encoding, errors=errors) as f:
File "c:\Users\clash\AppData\Local\Continuum\anaconda3\lib\pathlib.py", line 1186, in open
opener=self._opener)
File "c:\Users\clash\AppData\Local\Continuum\anaconda3\lib\pathlib.py", line 1039, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\clash\\AppData\\Local\\Temp\\pip-install-iopmrx_1\\felisaparser_b502d68ab1514a8aab4b01085810be9a\\README.md'
[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.
I would appreciate any kind of help.
I have tried changing the setup.py but it has not worked.

Problem executing colcon build with Ros2 Foxy windows

I am getting the following tracebacks when I try to colcon build my workspace (I am using Ros2 Foxy in windows):
--- stderr: dynamixel_sdk_custom_interfaces
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\yimmi\AppData\Roaming\Python\Python38\site-packages\numpy\__init__.py", line 138, in <module>
from . import _distributor_init
File "C:\Users\yimmi\AppData\Roaming\Python\Python38\site-packages\numpy\_distributor_init.py", line 26, in <module>
WinDLL(os.path.abspath(filename))
File "ctypes\__init__.py", line 373, in __init__
OSError: [WinError 193] %1 no es una aplicaci¾n Win32 vßlida
CMake Error at C:/opt/ros/foxy/x64/share/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake:213 (message):
execute_process(C:/opt/ros/foxy/x64/python.exe -c 'import
numpy;print(numpy.get_include())') returned error code 1
Call Stack (most recent call first):
C:/opt/ros/foxy/x64/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include)
C:/opt/ros/foxy/x64/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:286 (ament_execute_extensions)
CMakeLists.txt:31 (rosidl_generate_interfaces)
Does anyone know how to solve it?
I notice this:
WinError 193
It looks your python runtime version is not match Numpy (CPU arch different?). Maybe you had installed Anacoda and it overrides the default python path.
You could try to check your python path.

installing spaCy with pip failed with error "Failed building wheel for blis"

Tried to install spaCy with pip (version 20.0.2)
but got error like bellow
gcc -c /tmp/pip-install-f2b27qwm/blis/blis/_src/kernels/zen/1/bli_amaxv_zen_int.c -o /tmp/tmpu1wg8fg1/bli_amaxv_zen_int.o -O3 -mavx2 -mfma -mfpmath=sse -march=core-avx2 -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING="0.5.1" -DBLIS_IS_BUILDING_LIBRARY -Iinclude/linux-x86_64 -I./frame/3/ -I./frame/ind/ukernels/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I/tmp/pip-install-f2b27qwm/blis/blis/_src/include/linux-x86_64
gcc: error: unrecognized command line option '-mavx2'
gcc: error: unrecognized command line option '-mfma'
gcc: error: unrecognized command line option '-mfpmath=sse'
gcc: error: unrecognized command line option '-march=core-avx2'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-f2b27qwm/blis/setup.py", line 277, in <module>
"Topic :: Scientific/Engineering",
File "/home/{user_name}/.conda/envs/ncn/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/home/{user_name}/.conda/envs/ncn/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/{user_name}/.conda/envs/ncn/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/{user_name}/.conda/envs/ncn/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/{user_name}/.conda/envs/ncn/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 192, in run
self.run_command('build')
File "/home/{user_name}/.conda/envs/ncn/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/{user_name}/.conda/envs/ncn/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/{user_name}/.conda/envs/ncn/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/{user_name}/.conda/envs/ncn/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/{user_name}/.conda/envs/ncn/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/{user_name}/.conda/envs/ncn/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/tmp/pip-install-f2b27qwm/blis/setup.py", line 103, in build_extensions
objects = self.compile_objects(compiler.split("-")[0], arch, OBJ_DIR)
File "/tmp/pip-install-f2b27qwm/blis/setup.py", line 188, in compile_objects
objects.append(self.build_object(env=env, **spec))
File "/tmp/pip-install-f2b27qwm/blis/setup.py", line 201, in build_object
subprocess.check_call(command, cwd=BLIS_DIR)
File "/home/{user_name}/.conda/envs/ncn/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gcc', '-c', '/tmp/pip-install-f2b27qwm/blis/blis/_src/kernels/zen/1/bli_amaxv_zen_int.c', '-o', '/tmp/tmpu1wg8fg1/bli_amaxv_zen_int.o', '-O3', '-mavx2', '-mfma', '-mfpmath=sse', '-march=core-avx2', '-fPIC', '-std=c99', '-D_POSIX_C_SOURCE=200112L', '-DBLIS_VERSION_STRING="0.5.1"', '-DBLIS_IS_BUILDING_LIBRARY', '-Iinclude/linux-x86_64', '-I./frame/3/', '-I./frame/ind/ukernels/', '-I./frame/1m/', '-I./frame/1f/', '-I./frame/1/', '-I./frame/include', '-I/tmp/pip-install-f2b27qwm/blis/blis/_src/include/linux-x86_64']' returned non-zero exit status 1.
----------------------------------------
ERROR: Failed building wheel for blis
Running setup.py clean for blis
Failed to build numpy blis
ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly
----------------------------------------
ERROR: Command errored out with exit status 1: /home/{user_name}/.conda/envs/ncn/bin/python /home/{user_name}/.conda/envs/ncn/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-3j47_tuc/normal --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'cython>=0.25' 'thinc<7.4.0,>=7.3.0' 'preshed<3.1.0,>=3.0.2' 'murmurhash<1.1.0,>=0.28.0' wheel 'cymem<2.1.0,>=2.0.2' Check the logs for full command output.
it seems there are numpy problem
but i already installed numpy(1.16.5) while installing pytorch(1.12.0)
some stackoverflow solutions did not solve the problem
(Python Cannot install module spaCy)
(Failed building wheel for spacy)
because my machine runs on ppc64le, IBM watson machine.
so there are no wheel for my machine.
several packages are available (https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda/#/)
but spaCy is not one of them.
What should I do for installing spaCy?
You may install version 2.2.1 of spacy compiled for ppc64le in the powerai supplementary channel that was recently added.
conda install -c powerai spacy
You may also git clone https://github.com/IBM/powerai and modify https://github.com/IBM/powerai/blob/master/conda-recipes/spacy-feedstock/recipe/meta.yaml#L2-L3 to be version 2.1.6 and then conda-build the package yourself if you want that specific version. (You would then run conda-build from the conda-recipes/spacy-feedstock directory to generate the conda package)
It looks like the package is trying to build code using x86 specific flags: -mavx, flags that use SSE, etc. You should contact the package authors about this: they will need to change their package to not use those flags on platforms other than x86.

Resources