└─$ pip2 install pwntools
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Collecting pwntools
Using cached pwntools-4.8.0-py2.py3-none-any.whl (11.7 MB)
Collecting sortedcontainers
Downloading sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Collecting python-dateutil
Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
|████████████████████████████████| 247 kB 43 kB/s
Collecting pysocks
Downloading PySocks-1.7.1-py27-none-any.whl (16 kB)
Collecting intervaltree>=3.0
Using cached intervaltree-3.1.0.tar.gz (32 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-3FJQBs/intervaltree/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-3FJQBs/intervaltree/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ egg_info --egg-base /tmp/pip-pip-egg-info-nZ1feW
cwd: /tmp/pip-install-3FJQBs/intervaltree/
Complete output (17 lines):
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: ‘include_package_data’
warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: ‘install_requires’
warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: ‘zip_safe’
warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: ‘tests_require’
warnings.warn(msg)
!!!>>> This is a RELEASE version <<
pip2 install --upgrade pip setuptools
pip2 install pwntools
#成功