Last active
June 28, 2024 21:05
-
-
Save linuxbiekaisar/3bf452b25a03d513a3769c97de20dfeb to your computer and use it in GitHub Desktop.
How to install theHarvester on Ubuntu 18.04 LTS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Youtube: https://www.youtube.com/channel/UC8dSAxutoOJuoy7kExTd0AQ | |
# !/bin/sh | |
# use to git clon to download and clone the theHarvester from Github | |
git clone https://github.com/laramies/theHarvester | |
# Now enter into the theHarvester Folder | |
cd theHarvester | |
# Now install pip | |
sudo apt install python3-pip | |
# Now run the command if not donot work then run second one | |
python3.7 -m pip install -r requirements/dev.txt | |
# Else: | |
python3.7 -m pip install -r requirements/base.txt | |
# NOw run theHarvester | |
python3.7 theHarvester.py -h | |
# For Generating email list use this command | |
python3.7 theHarvester.py -d gmail.com -l 500 -b google | |
I tried following the above steps, but received this message:
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.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.12/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you are using anaconda, that is why you are getting the following errors.
install python using apt-get, and use the default install, this should solve the problem.