┌─[security77@devil] - [~] - [Fri Apr 04, 00:06]
└─[$] <> pip --version
ImportError: No module named site
how to fix
┌─[security77@devil] - [~] - [Fri Apr 04, 00:06]
└─[$] <> pip --version
ImportError: No module named site
how to fix
make sure its properly installed ;
sudo apt update
sudo apt install python3-pip
although I suspect that is not your problem judging by the fact its looking for a module named ‘site’
for proper help you have to give more context, you haven’t said how you installed it, what you did before the error etc..
└─[$] <> pip
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
ImportError: No module named site
what happened, it became like this
Nothing to fix, it’s working as intended.
Kali abandoned pip in favor of pipx months ago
Although you “should” receive a reference to that article when trying to install by pip.
Could you show us what the output of sudo apt update
is for you, please?
This is the same user who started this thread: How to fix install? - #3 by hedywibi
Where it looks to me like python on his system is completely broken and my last bit of advice was to do a full reinstall.
Assuming he hasn’t done that, trying to troubleshoot his issue with pip is pointless.