You are not logged in.

#1 2023-10-22 16:58:38

audiomuze
Member
Registered: 2014-03-31
Posts: 105

Trouble installing Python modules using pip and pipx

I'm running Python 3.11.5, pip 23.3.1 from /usr/lib/python3.11/site-packages/pip (python 3.11) and pipx 1.2.0

I'm trying to install string-grouper from PyPi

As I understand it the correct method is to use pipx:

pipx install string-grouper

returns:

Fatal error from pip prevented installation. Full pip output in file:
    /home/x/.local/pipx/logs/cmd_2023-10-22_17.48.48_pip_errors.log

pip failed to build package:
    sparse-dot-topn-for-blocks

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    sparse_dot_topn_for_blocks/sparse_dot_topn.pyx:23:0: 'array_wrappers.pxd' not found
    sparse_dot_topn_for_blocks/sparse_dot_topn.pyx:23:0: 'array_wrappers/ArrayWrapper_int.pxd' not found
    sparse_dot_topn_for_blocks/sparse_dot_topn.pyx:23:0: 'array_wrappers/ArrayWrapper_float.pxd' not found
    sparse_dot_topn_for_blocks/sparse_dot_topn.pyx:23:0: 'array_wrappers/ArrayWrapper_double.pxd' not found
    Cython.Compiler.Errors.CompileError: ./sparse_dot_topn_for_blocks/sparse_dot_topn.pyx

Error installing string-grouper.

Log here:
Pastebin

pipx install sparse-dot-topn-for-blocks

returns the following:

Fatal error from pip prevented installation. Full pip output in file:
    /home/x/.local/pipx/logs/cmd_2023-10-22_17.55.16_pip_errors.log

pip failed to build package:
    sparse-dot-topn-for-blocks

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    sparse_dot_topn_for_blocks/sparse_dot_topn.pyx:23:0: 'array_wrappers.pxd' not found
    sparse_dot_topn_for_blocks/sparse_dot_topn.pyx:23:0: 'array_wrappers/ArrayWrapper_int.pxd' not found
    sparse_dot_topn_for_blocks/sparse_dot_topn.pyx:23:0: 'array_wrappers/ArrayWrapper_float.pxd' not found
    sparse_dot_topn_for_blocks/sparse_dot_topn.pyx:23:0: 'array_wrappers/ArrayWrapper_double.pxd' not found
    Cython.Compiler.Errors.CompileError: ./sparse_dot_topn_for_blocks/sparse_dot_topn.pyx

Error installing sparse-dot-topn-for-blocks.

Log here:
Pastebin

Any tips for troubleshooting this?

Last edited by audiomuze (2023-10-22 17:04:30)


Linux user #338966

Offline

#2 2023-10-22 18:14:16

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,453

Re: Trouble installing Python modules using pip and pipx

audiomuze wrote:

As I understand it the correct method is to use pipx:

No, not quite.

If there is no package available for string-grouper in either the official repo or the AUR, then as a minimum use a virtual environment.

Offline

#3 2023-10-22 18:58:35

audiomuze
Member
Registered: 2014-03-31
Posts: 105

Re: Trouble installing Python modules using pip and pipx

twelveeighty wrote:
audiomuze wrote:

As I understand it the correct method is to use pipx:

No, not quite.

If there is no package available for string-grouper in either the official repo or the AUR, then as a minimum use a virtual environment.

That's what pipx does?


Linux user #338966

Offline

#4 2023-10-25 01:21:44

audiomuze
Member
Registered: 2014-03-31
Posts: 105

Re: Trouble installing Python modules using pip and pipx

Nobody has any suggestions?


Linux user #338966

Offline

#5 2023-10-25 08:22:48

astralc
Member
Registered: 2022-09-17
Posts: 127

Re: Trouble installing Python modules using pip and pipx

Offline

Board footer

Powered by FluxBB