Skip to content

pip install failing in Kali #694

Open
@digininja

Description

@digininja

OS Used - ALL Information (architecture, linux flavor, etc.)

Latest Kali

We moved away from using pip to install the Python modules because they weren't being installed correctly due to conflicts with other libraries installed by apt. The latest update to the setup script has gone back to pip which is now failing on the latest Kali.

This is what I get if I run the install script on its own:

┌──(robin㉿RT-KALI-RW)-[~/tools/EyeWitness/Python/setup]
└─$ sudo python3 -m pip install -r requirements.txt
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.

I managed to install all the modules except Selenium using apt but apt wants to install the latest Selenium and gives version 4.24.4 rather than 4.9.1 which doesn't work.

For now, I've got it working using a virtual environment:

sudo apt install python3.12-venv
python3 -m venv ~/tools/venv
~/tools/venv/bin/pip install -r setup/requirements.txt 
~/tools/venv/bin/python EyeWitness.py 
 ~/tools/venv/bin/python EyeWitness.py -x ~/file.xml -d ~/eyew1

I don't know how easy it would be to get this setup through the setup script but it might be worth a try.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions