-1

I am using Kali Linux, and I am trying to install some requirements of one packet for test purposes, but I keep getting the below error. I have tried many solutions but they are all not working and the error still persists

# pip3 install -r requirements.txt

or

pip3 install name_of_package-py

error I am getting - picture

Gino Mempin
  • 25,369
  • 29
  • 96
  • 135

1 Answers1

0

Generally, the only command you would need is:

pip install name_of_package

if it doesn't work you could try:

sudo pip install name_of_package

sudo should work, but you have to be careful regarding the package because with sudo you could end up installing a package with some malware in it. Therefore be certain of the reliability of the package.

also depending on the version you are using could be pip or pip3

mike_thecode
  • 171
  • 2
  • 6
  • Thank you for your support, it works with me after I have deleted #3 from PIP, – learning Linix Feb 24 '21 at 21:37
  • `sudo` also force-installs the package system-wide, in the same python environment used by your OS/system, which can break things. We should stop recommending `sudo pip`. Either use `pip install --user` or a virtual environment. See [Is it acceptable and safe to run pip install under sudo?](https://stackoverflow.com/q/15028648/2745495) – Gino Mempin Feb 25 '21 at 10:53