mkvirtualenv --python=$(which python3) angr && pip install angrshould usually be sufficient to install angr in most cases, since angr is published on the Python Package Index.
pip install angrshould work, but there are some caveats.
unicornlibrary, which (as of this writing)
pipmust build from source on macOS, even though binary distributions ("wheels") exist on other platforms. Building
unicornfrom source requires Python 2, so will fail inside a virtualenv where
pythongets you Python 3. If you encounter errors with
pip install angr, you may need to first install
unicornseparately, pointing it to your Python 2:
pip install angr.
pip install angr. You should not be required to build any C code with this setup, since wheels (binary distributions) should be automatically pulled down for angr and its dependencies.
angr-devwith scripts to make life easier for angr developers. You can set up angr in development mode by running:
-e angr), checks for any dependencies you might need (
-i), clones all of the repositories and installs them in editable mode.
setup.shcan even create a PyPy virtualenv for you (replace
-p), resulting in significantly faster performance and lower memory usage.
virtualenvabove with the
virtualenvwrapper-winpackage for a more streamlined experience.
docker run -v).
libgomp. A Z3 recompile is required. You can do this by executing:
python -m pip install -U pip), which might solve the issue.
cffiPython module. angr now requires at least version 1.7 of cffi. Try
pip install --upgrade cffi. If the problem persists, make sure your operating system hasn't pre-installed an old version of cffi, which pip may refuse to uninstall. If you're using a Python virtual environment with the pypy interpreter, ensure you have a recent version of pypy, as it includes a version of cffi which pip will not upgrade.
angr.py? You can't do that. Python does not work that way.
keystonepackage installed, which conflicts with the
keystone-enginepackage (an optional dependency of angr). Please uninstall
keystone. If you would like to install
keystone-engine, please do it with
pip install --no-binary keystone-engine keystone-engine, as the current pip distribution is broken.
Cannot use 'python', Python 2.4 or later is required. Note that Python 3 or later is not yet supported.)
UNICORN_QEMU_FLAGSenvironment variable for
pip. See the section above on installing for macOS.