Closed jonathandkyle closed 2 years ago
When you sudo pip
, you are installing globally. Looking at your python fire.py
line, you are operating within a python virtual environment. You shouldn't install the requirements with sudo, always activate the virtualenv and install there directly. So, first activate the fireprox virtual environment and then just pip install -r requirements
without sudo. This will call the pip within the virtual environment instead of the global pip.
Another indicator that you are trying to do things in 2 separate environments is:
Virtual Environment
┌──(fireprox)(kali㉿kali)-[~/MSOLSpray/fireprox]
└─$ python fire.py
versus
No Virtual Environment
┌──(kali㉿kali)-[~]
└─$ uname -a 127 ⨯
This may be a simple, or stupid issue, but when I try to run: ┌──(fireprox)(kali㉿kali)-[~/MSOLSpray/fireprox] └─$ python fire.py exit
I get:
File "/home/kali/MSOLSpray/fireprox/fire.py", line 4, in
import tldextract
ModuleNotFoundError: No module named 'tldextract'
I looked back at the output of:
sudo pip install -r requirements.txt
which shows:
Requirement already satisfied: tldextract in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 2)) (3.1.2)
I have run all applicable with sudo as well and I am not understanding why it does not see that module.
additional: ┌──(kali㉿kali)-[~] └─$ uname -a 127 ⨯ Linux kali 5.10.0-kali9-amd64 #1 SMP Debian 5.10.46-4kali1 (2021-08-09) x86_64 GNU/Linux