New kali configuration install pip + python library module docker-compose shooting range-pro test is feasible!!!

pip is not installed, cannot find the command
python library module is not installed
ImportError: No module named setuptools

  1. Check the version to confirm whether python is installed
python -v
  1. Install PYTHON's PIP management tool
    关键的一步
sudo apt-get install python-setuptools 
sudo apt-get install python-pip

sudo apt-get install python3-setuptools
sudo apt-get install python3-pip

//找不到合适版本安装,升级pip,--upgrade 后面跟的是需要升级的库名
python -m pip install --upgrade pip

//网络问题
pip install 包名-i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
--trusted-host pypi.douban.com 这是为了获得ssl证书的认证

Insert picture description herehttps://packaging.python.org/guides/installing-using-linux-tools/#installing-pip-setuptools-wheel-with-linux-package-managers

  1. Install xxx module
pip install xxx
pip install xxx.py

Insert picture description here

Insert picture description here

Insert picture description here

Or troublesome, download and install manually

https://pypi.python.org/pypi/pip

Insert picture description here

wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9
tar -zxvf pip-9.0.1.tar.gz
cd pip-9.0.1
python setup.py install

When using the latest Kali Linux 2020.3 to install the docker shooting range:
first install pip, pip3, and then sudo pip install dokcer-composealways report an error (kali 2020.2 will not, directly succeed),
so first install only pip3, and then sudo pip3 install dokcer-composesucceed

Insert picture description here
Please refer to
https://vulhub.org/
https://vulhub.org/#/docs/install-docker/ for other issues regarding docker shooting range installation
Insert picture description here

Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/vanarrow/article/details/107963768