Skip to content

Encountered error while trying to install package. ╰─> lxml #19

Open
@JetFree

Description

@JetFree

Hi, I'm using Kali Linux Release: 2022.4
python --version:
Python 3.10.7

After running the command pip install https://github.com/tijme/angularjs-csti-scanner/archive/master.zip
I'm getting the error:
Compile failed: command '/usr/bin/gcc' failed with exit code 1
cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInit7gbia19y.c -o tmp/xmlXPathInit7gbia19y.o
cc tmp/xmlXPathInit7gbia19y.o -lxml2 -o a.out
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
Rolling back uninstall of lxml
Moving to /home/jetfree/.pyenv/versions/3.10.7/envs/angular_scanner/lib/python3.10/site-packages/lxml-4.9.2.dist-info/
from /home/jetfree/.pyenv/versions/3.10.7/envs/angular_scanner/lib/python3.10/site-packages/~xml-4.9.2.dist-info
Moving to /home/jetfree/.pyenv/versions/3.10.7/envs/angular_scanner/lib/python3.10/site-packages/lxml/
from /home/jetfree/.pyenv/versions/3.10.7/envs/angular_scanner/lib/python3.10/site-packages/~xml
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> lxml

I've installed and updated all needed packages, that could cause this error:
python3-lxml is already the newest version (4.9.2-1+b1).
libxml2-dev is already the newest version (2.9.14+dfsg-1.1+b3).
libxslt1-dev is already the newest version (1.1.35-1).
I've also updated wheel and setuptools packages, but still face this error during installation.
GCC package also installed: gcc is already the newest version (4:12.2.0-3).

Please, help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions